Talaba jadvalidan familiyasi B harfi bilan boshlanib, V harfi bilan tugovchilarini sonini sanash so‘rovi qaysi javobda to‘g‘ri ko‘rsatilgan SELECT COUNT(*) as `Natija` from `Talaba` WHERE `Familiyasi` LIKE `B%V`
SELECT COUNT(*) as `Natija` from `Talaba` WHERE LIKE `Familiyasi` `B%V`
SELECT COUNT(*) as `Natija` from `Talaba` WHERE LIKE `Familiyasi` `B%V%`
SELECT COUNT(*) as `Natija` from `Talaba` WHERE `Familiyasi` LIKE `%B%V`
ANSWER: A
ALTER TABLE `Xodim` MODIFY `Jinsi` varchar(5); Sorovi natijasi Jadvaldagi ‘Jinsi’ nomli ustun ma’lumot tipini varchar(5) ga o’zgartiradi
Jadvaldagi hamma ma’lumotlar tipini varchar(5) ga o’zgartiradi
Xodim Ustunidagi Jinsi qatorini 5 ga o’zgartiradi
Xodim qatoridagi ma’lumot uzunligini 5 taga bo’ladi
ANSWER: A
Mahsulot jadvalidan narxi 4000 so'm va undan yuqori bo‘lganlarini nomi bo‘yicha guruhlab chiqarish so‘rovi qaysi javobda to‘g‘ri ko‘rsatilgan SELECT `Nomi`, MAX(`narx`) as `Natija` from `Mahsulot` GROUP BY `Nomi` HAVING MAX(`narx`)>=4000
SELECT `Nomi`, MAX(`narx`) as `Natija` from GROUP BY `Nomi` HAVING MAX(`narx`)>4000
SELECT * from `Mahsulot` GROUP BY `Nomi` HAVING MAX(`narx`)>4000
SELECT `Nomi`, MAX(`narx`) as `Natija` from `Mahsulot` GROUP BY `narx` HAVING MAX(`Nomi`)>=4000
ANSWER: A
Fanlar jadvalidan `fan_soati` 80 dan yuqori bo‘lganlarini nomi bo‘yicha guruhlab chiqarish so‘rovi qaysi javobda to‘g‘ri ko‘rsatilgan SELECT `Fan_nomi`, MAX(`fan_soati`) as `Natija` from `Fanlar` GROUP BY `Fan_nomi` HAVING MAX(`fan_soati`)>80
SELECT `Fan_nomi`, MAX(`fan_soati`) from `Fanlar` GROUP BY `Fan_nomi` HAVING MAX(`fan_soati`)>=80
SELECT `Fan_nomi`, MAX(`fan_soati`) as `Natija` GROUP BY `Fan_soati` HAVING MAX(`fan_soati`)>80
SELECT `Fan_nomi`, MAX(`fan_soati`) as `Natija` from `Fanlar` GROUP BY `Fan_nomi` HAVING MAX(`fan_nomi`)>80