6
209. SELECT MAX(`mah_narxi(so``m)`) as `eng qimmat mahsulot` FROM `mahsulotlar`;
so`rov natijasini toping
Eng qimmat narxga ega bo`lgan mahsulot narxi
210. SELECT * FROM `mahsulotlar` WHERE `mah_narxi(so``m)`(SELECT
MIN(`mah_narxi(so``m)`) FROM `mahsulotlar`); so`rov natijasini toping
Eng qimmat narxga ega bo`lgan mahsulot haqida
barcha ma`lumot
211. select * from test order by ism desc; So`rovdagi "desc" nima vazifa bajaradi?
Ism ustunini teskarisiga saralaydi
212. SELECT AVG(`mah_narxi(so``m)`) FROM `mahsulotlar`; so`rov natijasini toping
Mahsulotlar jadvalidagi mah_narxi ustunining o`rta
arifmetigi
213. SELECT MID(`familiya`,1,1) FROM `xodimlar`; so`rov natijasini toping
Xodimlar familyalarining bosh harflarini chiqaradi
214.
a) SELECT MID(`familiya`,1,1) FROM `xodimlar`;b) SELECT LEFT(`familiya`,1)
FROM `xodimlar`; c) SELECT SUBSTR(`familiya`,1,1) FROM `xodimlar`; a, b va c
so`rovlarni farqini toping
farqi yo`q
215. AS komandasinig vazifasi va qo`llanilishi haqida ayting
Atributni qayta nomlash uchun ishlailadi
216. Quyidagi so`rov qanday javob qaytaradi SELECT * FROM
students s INNER JOIN Groups g ON s.group_id <> g.id
* groups va students jadvalidagi s.group_id g.id tengligini qanoatlantiruvchi
qatorlardan tashqari barcha qatorlarni chiqarib beradi
217. SELECT MIN(id) FROM STUDENT so‘rovi nimani qaytaradi
* STUDENTning minimal indentifikatori
218. SELECT MAX(id) FROM STUDENT so‘rovi nimani qaytaradi
* STUDENTning maksimal indentifikatori
Do'stlaringiz bilan baham: