Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Database Kuliah

Database Kuliah

Ratings: (0)|Views: 12 |Likes:
Published by Christo Novel

More info:

Published by: Christo Novel on Jun 28, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

06/28/2010

pdf

text

original

 
create table Dosen (KdDosen char(10) primary key not null, Nama varchar(30))create table Kuliah (KdKul char(10) primary key not null, NamaKul varchar(50),ruang varchar(50))create table Honor (KdDosen char(10) foreign key references Dosen(KdDosen), KdKul char(10) foreign key references Kuliah(KdKul),JmlJam int, Honor float)insert into Dosen (KdDosen, Nama) values ('D10054','Yoesni Maraden')insert into Dosen (KdDosen, Nama) values ('D22094','Fauzan Zein')insert into Dosen (KdDosen, Nama) values ('D38987','Ambrosius Adi')insert into Dosen (KdDosen, Nama) values ('D78678','Rahmiati')insert into Dosen (KdDosen, Nama) values ('D45389','Anthony Stevens')insert into Dosen (KdDosen, Nama) values ('D67658','Sofyan Suhaimi')insert into Dosen (KdDosen, Nama) values ('D87768','Monica')insert into Dosen (KdDosen, Nama) values ('D90877','Fitriyana')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0154','Visual Basic','Lab Adan Lab B')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0294','Struktur Data','LabC')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0387','Grafika Komputer','Lab D')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0477','HTML','Lab D')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0578','Turbo C','Lab A danLab B')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0689','Statistik','Lab E')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0758','SQL Server','Lab E')insert into Kuliah (KdKul, NamaKul, ruang) values ('K0868','Operation Research','Lab C')insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D10054','K0154',12,96000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D22094','K0294',8,64000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D38987','K0387',12,96000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D90877','K0477',14,112000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D78678','K0578',6,48000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D45389','K0689',8,64000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D67658','K0758',4,32000)insert into Honor (KdDosen, KdKul, JmlJam, Honor) values ('D87768','K0868',10,80000)--no 7select * from honor where honor BETWEEN 50000 AND 100000--no 8select * from honor where honor < (select avg (honor) from honor)--no 9select kddosen, honor, honor-honor*0.15 AS honor_setelah_potong_pajak from honor--no 10select dosen.kddosen,dosen.nama,honor.jmljam,honor.honor from dosen,honor

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->