Table gaji karyawan
No
|
Nama
|
Jabatan
|
Golongan
|
Gaji
|
1
| |
Office
|
2 A
|
Rp 1500000;
|
2
| |
Programmer
|
1 B
|
Rp 2500000;
|
3
|
Anggi
|
Office
|
2 B
|
Rp 1500000;
|
4
| |
Sekretaris
|
1 A
|
Rp 3500000;
|
5
|
Mian
|
Office
|
2 A
|
Rp 1500000;
|
6
| |
Office
|
2 B
|
Rp 1500000;
|
7
|
Nuri
|
Programmer
|
1 B
|
Rp 2500000;
|
8
|
Puput
|
Sekretaris
|
1 A
|
Rp 3500000;
|
9
|
Rizal
|
Office
|
2 B
|
Rp 1500000;
|
10
|
Susi
|
Office
|
2 A
|
Rp 1500000;
|
v Create
(No char (2) not null,
Nama char (20) not null,
Jabatan char (10),
Golongan char (3),
Gaji char (12),
Foregn key (Golongan));
v Insert
Insert into TABEL GAJI KARYAWAN values (‘1’,’Ana’,’Office’,’2 A’,’Rp 1500000’);
Insert into TABEL GAJI KARYAWAN values (‘2’,’Dewi’,’Programmer’,’1 B’,’Rp 2500000’);
Insert into TABEL GAJI KARYAWAN values (‘3’,’Anggi’,’Office’,’2 B’,’Rp 1500000’);
Insert into TABEL GAJI KARYAWAN values (‘4’,’Doni’,’Sekretaris’,’1 A’,’Rp 3500000’);
Insert into TABEL GAJI KARYAWAN values (‘5’,’Mian’,’Office’,’2 A’,’Rp 1500000’);
Insert into TABEL GAJI KARYAWAN values (‘6’,’Dani’,’Office’,’2 B’,’Rp 1500000’);
Insert into TABEL GAJI KARYAWAN values (‘7’,’Nuri’,’Programmer’,’1 B’,’Rp 2500000’);
Insert into TABEL GAJI KARYAWAN values (‘8’,’Puput’,’Sekretaris’,’1 A’,’Rp 3500000’);
Insert into TABEL GAJI KARYAWAN values (‘9’,’Rizal’,’Office’,’2 B’,’Rp 1500000’);
Insert into TABEL GAJI KARYAWAN values (‘10’,’Susi’,’Office’,’2 A’,’Rp 1500000’);
v Select
Select * TABEL GAJI KARYAWAN
Tidak ada komentar:
Posting Komentar