Texnologiyalari universiteti telekommunikatsiyalar fakulteti


select first_name, count(*) from student group by first_name


Download 152.87 Kb.
Pdf ko'rish
bet15/15
Sana07.11.2023
Hajmi152.87 Kb.
#1753671
1   ...   7   8   9   10   11   12   13   14   15
Bog'liq
Suxrob Boborasulov - AT16

select first_name, count(*) from student group by first_name 
order by first_name; 
 
 
 
 
 
 
 
 
 
 
So’rovi : 
select * from student order by first_name; 


 
 
So’rovi : 
select * from student order by first_name desc; 
 
 
So’rovi :
select * from student having last_name = 'bahromov'; 
 
 
 
 
 
 
 
So’rovi : 
select first_name , count(*) from student group by first_name 


having count(*)>2;
 
 
 
 

Document Outline

  • 5 - AMALIY MASHG‘ULOTI
  • Mavzu: Ma’lumotlarni saralash. Where standart so‘zidan foydalanish
  • 6 - AMALIY MASHG‘ULOTI
  • Mavzu: Group by va Order by standart so‘zlaridan foydalanib so‘rov yaratish. Having standart so‘zi orqali so‘rovlar yaratish

Download 152.87 Kb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   15




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling