Anda di halaman 1dari 4

Membuat database KAMPUS Nama : Joko Triyono Kelas : MI Los Angels 1 NIM : 09.MI.

266 Create database KAMPUS Membuat Tabel Tabel Mahasiswa


Create table MAHASISWA(

THANG int (4) not null primary key,


NIM int (4) not null, NAMA varchar(30) not null, ALAMAT varchar (80) null, TANGGAL date null default 0000-00-00);

Tabel Matakuliah,
Create table MATAKULIAH (

KODE char (2) not null primary key,


MATAKULIAH varchar (30) not null, SKS int(4) null):

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

3. Tampilkan semua struktur tabelnya! 4. Capture Hasilnya!

Thank you for evaluating AnyBizSoft PDF to Word.


You can only convert 3 pages with the trial version. To get all the pages converted, you need to purchase the software from:
http://www.anypdftools.com/buy/buy-pdf-to-word.html

Anda mungkin juga menyukai