Senin, 19 Maret 2012

Latihan PBD

Diposting oleh Octriana Muliawati di 23.09
1. select no_order, count(*) jumlah_order
from order
group by no_order
having count (*) > 100;


2. select mk, max ((nilai) – min (nilai))
from transkip
group by mk;


3. select nama, department_id
from employees
where department_id = (select department_id from employees where nama = ‘ida’);


4. select nama
from mk
where kode_mk = ’434′
having nilai > avg((0.3*uts)+(0.3*uas)+(0.4*tugas))
group by nama;

0 komentar:

Posting Komentar

 

Full of Hysteria Template by Ipietoon Blogger Template | Gift Idea