Presentasi sedang didownload. Silahkan tunggu

Presentasi sedang didownload. Silahkan tunggu

Jalankan script sql berikut : sekolah.sql

Presentasi serupa


Presentasi berjudul: "Jalankan script sql berikut : sekolah.sql"— Transcript presentasi:

1 Jalankan script sql berikut : sekolah.sql
LATIHAN Jalankan script sql berikut : sekolah.sql (membuat tabel sekaligus meng-entri data sekolah kurang lebih 200 record)

2 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

3 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

4 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’

5 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%'

6 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'

7 C. Pengelompokan  Group
select theme,school_name from sekolah group by theme,school_name


Download ppt "Jalankan script sql berikut : sekolah.sql"

Presentasi serupa


Iklan oleh Google