+------------------------------+
| maosh_oladigan_ischilar_soni |
+------------------------------+
| 8 |
+------------------------------+
1 row in set (0.00 sec)
7. Har bir talaba o’ziga berilgan predmet soha mavzusi bo’yicha
STANDART FUNKSIYALARDAN foydalanib so’rovlar yaratishi va
natijasi bilan ko’rsatib o’tishi kerak.
(har bir turkumdan bittadan funksiya keltirilgan)
FOR STRING turkumdan ASCII funksiyasi:
mysql> SELECT ism, ASCII(ism) AS name_ASCII_code FROM oqituvchilar;
+-------------+-----------------+
| ism | name_ASCII_code |
+-------------+-----------------+
| Muhammadali | 73 |
| Otabek | 79 |
| Xatamjon | 65 |
| Behruz | 66 |
| Dilshod | 65 |
| Shoxruh | 83 |
| Asror | 78 |
+-------------+-----------------+
8 rows in set (0.00 sec)
FOR NUMERIC turkumdan MIN funksiyasi:
mysql> SELECT MIN(maosh) AS eng_kam_maosh FROM oqituvchilar;
+---------------+
| eng_kam_maosh |
+---------------+
| 2000000 |
+---------------+
1 row in set (0.00 sec)
FOR DATE turkumdan YEAR funksiyasi:
mysql> SELECT YEAR('2017/08/25') AS Year;
+------+
| Year |
+------+
| 2017 |
+------+
1 row in set, 1 warning (0.00 sec)
8.
Har bir talaba o’ziga berilgan predmet soha mavzusi bo’yicha murakkab
Do'stlaringiz bilan baham: