Anda di halaman 1dari 5

1.

Membuat database Mysql> create database Perum_Indrawan;

2. Membuat table Pelanggan Mysql> create table Pelanggan (No_Pelanggan char(5)primary key not null, Nama_Pelanggan varchar(10)not null);

3. Membuat table Pelanggan Mysql> create table pelanggan (No_Pemilik char(5)primary key not null, Nama_Pemilik varchar(10)not null,

Alamat varchar(20)not null, Telp char(10)not null);

4. Membuat table Property Mysql> create table property (Nomor_Property char(5)primary key not null, Alamat_Property varchar(20)not null, Biaya int(10)not null, No_Pemilik char(5)not null);

5. Membuat table Biaya Mysql> create table biaya (No_Pelanggan char(5)not null, Nomor_Property char(5)not null,

Tanggal_Pinjam date, Tanggal_Selesai date);

6. Mengisi Table Pelanggan Mysql>insert into pelanggan (No_Pelanggan,Nama_Pelanggan) Values ( CR56 , Indra ), ( CR76 , Wawan ), ( CR66 , Uchok ), ( CR44 , Hali );

7. Mengisi Table Pemilik Mysql>insert into pelanggan (No_Pemilik,Nama_Pemilik,Alamat,Telp) Values ( CO40 , Indrawan , Jl Angkasa M 24 , 087815979998 ), ( CO93 , Kholis , Jl Amanah KM 7 , 081350500779 ), ( CO91 , Julian , Jl Sepakat RT 2 , 085754057779 );

8. Mengisi Table Property Mysql>insert into property (Nomor_Property,Alamat_Property,Biaya,No_Pemilik) Values ( PG4 , Jl Kuripan / 01, BJM ,3500000, CO40 ), ( PG16 , Jl Pramuka / 10,BJM ,4500000, CO93 ), ( PG21 , Jl Bumi Mas / 07, BJB ,5000000, CO40 ), ( PG23 , Jl Angkasa / 24,BJB ,2500000, CO91 );

9. Mengisi Table Biaya Mysql>insert into biaya (No_Pelanggan, Nomor_Property,Tanggal_Pinjam,Tanggal_Selesai) Values ( CR56 , PG4 , 1994-07-01 , 1995-08-05 ), ( CR56 , PG16 , 1995-09-01 , 1996-10-05 ), ( CR56 , PG23 , 1997-01-01 , 1998-02-05 ), ( CR76 , PG4 , 1998-06-01 , 1999-07-05 ), ( CR76 , PG16 , 1999-08-01 , 2000-09-05 ), ( CR66 , PG23 , 1998-01-01 , 2002-07-05 ), ( CR44 , PG21 , 1995-09-01 , 2000-10-05 );

Anda mungkin juga menyukai