Create database Pegawai
Use Pegawai
Create table Jabatan(
Kd_Jabatan char(4)primary key,
Nama_Jabatan Varchar(30))
Select * from Jabatan
Create table Pegawai(
Nip_Pegawai Varchar(10)primary key,
Nama_Pegawai Varchar(30),
Jns_Kelamin_Pegawai Char(1),
Kd_Jabatan char(4)
Constraint F_Pegawai Foreign Key(Kd_Jabatan)
References Jabatan (Kd_Jabatan))
Insert Into Jabatan Values ('A001','Direktur')
Insert Into Jabatan Values ('A002','Wakil Direktur')
Insert Into Jabatan Values ('A003','Sekretaris')
Insert Into Pegawai Values ('0001','Nina','P','A002')
Insert Into Pegawai Values ('0002','Nana','P','A003')
Insert Into Pegawai Values ('0003','Nandar','L','A001')
Select * from Pegawai
0 Response to "Pertemuan V"
Post a Comment