+------------------------------+
| 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 xodimlar;
+-------------+-----------------+
| ism | name_ASCII_code |
+-------------+-----------------+
| Islomjon | 73 |
| Otabek | 79 |
| Asror | 65 |
| Behruz | 66 |
| Abdulla | 65 |
| Shukurullo | 83 |
| Nodirbek | 78 |
| Muhammadrizo | 77 |
+-------------+-----------------+
8 rows in set (0.00 sec)
FOR NUMERIC turkumdan MIN funksiyasi:
mysql> SELECT MIN(maosh) AS eng_kam_maosh FROM xodimlar;
+---------------+
| 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
Dostları ilə paylaş: