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ş: