Lalu Mas Yondy memberi pelajaran tentang query pada sql .
urutan syntaknya :
Select --> From --> Where --> Group by --> Having --> Order by
misal data saya :
kemudian Mas Yondy memberi pertanyaan ..
Bagaimana query menampilkan data sehingga sepertiini tampilannya :
Scripnya adalah :
select distinct left(companyname
,1),COUNT(*) as jumlah from
Customers where left (companyname,1) <> 'c' group by left(CompanyName,1) having count(*)> 4 and count(*) < 7 order by 1
0 komentar:
Posting Komentar