viloyati Farg`ona tumani Mindon MFY | +998911300994 | Valijon Alijonov Akmaljon o`g`li | | 2 | Shamsinur | Soliyeva | Faxriddin qizi | xususiy mulk | Farg`ona viloyati Farg`ona shahar Aeroport MFY | +998979952236 | Gulyora Saminova Adhamovna | | 3 | Nafisa | Fozilova | Ilmiddin qizi | xususiy mulk | Andijon viloyati Marhamat tumani Qodiriy MFY | +998945892252 | Gulyora Saminova Adhamovna | +------+-----------+------------+------------------+---------------+------------------------- -----------------------+----------------+-----------------------------------+ SELECT COUNT(M_ID), Mijoz_manzili
-> FROM mijozlar -> GROUP BY Mijoz_manzili; +-------------+------------------------------------------------+ | COUNT(M_ID) | Mijoz_manzili | +-------------+------------------------------------------------+ | 1 | Andijon viloyati Marhamat tumani Qodiriy MFY | | 1 | Farg`ona viloyati Farg`ona shahar Aeroport MFY | | 1 | Farg`ona viloyati Farg`ona tumani Mindon MFY | +-------------+------------------------------------------------+ 4. Har bir talaba o’ziga berilgan predmet soha mavzusi bo’yicha HAVING operatoridan foydalanib so’rovlar yaratishi va natijasi bilan ko’rsatib o’tishi kerak. SELECT COUNT(M_ID), Mijoz_manzili -> from mijozlar -> group by mijoz_manzili -> having Count(M_ID)>1; Empty set (0.02 sec) 5. Har bir talaba o’ziga berilgan predmet soha mavzusi bo’yicha UNION, INTERSECT, MINUS operatorlaridan foydalanib so’rovlar yaratishi va natijasi bilan ko’rsatib o’tishi kerak. select*from xaridorlar; +----------+---------- ----+----------+-------------+-------