| 8 | Muhammadrizo | Rayimjonov | 2017 | 3000000 | nazoratchi | 8 |
| 1 | Islomjon | Ismoilov | 2017 | 5000000 | direktor | 8 |
+----------+-------------+--------------+------------------+---------+--------------------+------------------+
8 rows in set (0.00 sec)
mysql> SELECT COUNT(xodim_id), lavozim FROM xodimlar GROUP
BY lavozim;
+-----------------+--------------------+
| COUNT(xodim_id) | lavozim |
+-----------------+--------------------+
| 1 | direktor |
| 2 | sifat nazoratchisi |
| 2 | ishchi xodim |
| 2 | mexanik |
| 1 | nazoratchi |
+-----------------+--------------------+
5 rows in set (0.00 sec)
Dostları ilə paylaş: