Tabel Matakuliah,
Create table MATAKULIAH (
Tabel Dosen Create table DOSEN ( NIP int (4) not null primary key, NAMA varchar (30) not null); Tabel Kelas Create table KELAS ( IDKELAS int(4) not null primary key, KODE char (2) not null, NIP int (4) not null, Foreign key KODE references MATAKULIAH(KODE), Foreign key NIP references DOSEN(NIP) ); Tabel KRS Create table KRS ( NIM int (4) not null, IDKELAS int (4) not null, NILAI int (4) not null, Foreign key NIM references MAHASISWA (NIM), Foreign key IDKELAS references KELAS (IDKELAS) );
Tugas 1. Buat sebuah database dengan nama KAMPUS! 2. Buat tabel-tabel berikut