Jalankan script sql berikut : sekolah.sql LATIHAN Jalankan script sql berikut : sekolah.sql (membuat tabel sekaligus meng-entri data sekolah kurang lebih 200 record)
Amati dan Cermati untuk masing-masing sintak sql berikut : select school_name,register_date from sekolah A.2 select school_name,register_date from sekolah order by register_date asc select school_name,register_date from sekolah order by register_date desc
A.3 select * from sekolah where establish_date between '1960/01/01' and '1970/12/31‘ A.4 (100 teratas untuk semua kolom) Select top 100 * from sekolah (100 teratas untuk kolom nama sekolah) Select top 100 school_name from sekolah
A.5 select distinct(school_type) from sekolah A.6 select count (*) from sekolah select count (*) from sekolah where school_type=‘JH’ select count (*) from sekolah where school_type=‘HS’
B2. LIKE and NOT LIKE 1. select * from sekolah where school_name like '%semarang‘ 2. select * from sekolah where school_name like '%negeri%‘ 3. select * from sekolah where school_name like 'smp%‘ 4. select * from sekolah where school_name not like 'smp%'
B.3 OPERATOR LOGIC Operator AND select * from sekolah where school_type='hs' and school_name like '%negeri%‘ Operator OR select * from sekolah where school_type='hs' or school_name like '%negeri%‘ Operator <> atau NOT select * from sekolah where school_type <> 'hs‘ select * from sekolah where not school_type ='hs'
C. Pengelompokan Group select theme,school_name from sekolah group by theme,school_name