TUGAS 3
SISTEM
MANAGEMENT BASIS DATA
OLEH :
Gilangsurya adi p (121051065)
Kevin bagus aditya (121051068)
Yusron (121051122)
Firman aziz u (121051124)
INSTITUT
SAINS & TEKNOLOGI AKPRIND
RANCANGAN STRUKTUR TABEL DATABASE
YANG DIGUNAKAN DALAM BENTUK 3NF
Tabel
pemasok :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_pemasok
|
Char
|
10
|
No
|
-
|
Primary key
|
2
|
Nama_pemasok
|
Varchar
|
30
|
No
|
-
|
|
3
|
Alamat_pemasok
|
varchar
|
30
|
No
|
-
|
|
4
|
No_telp
|
varchar
|
12
|
yes
|
-
|
|
Tabel
daftar _barang_stok :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_barang
|
Char
|
10
|
No
|
-
|
Primary key
|
2
|
Nama_barang
|
Varchar
|
30
|
No
|
-
|
|
3
|
Merk_barang
|
Varchar
|
30
|
No
|
-
|
|
4
|
Type_barag
|
Varchar
|
30
|
No
|
-
|
|
5
|
Id_pemasok
|
Char
|
10
|
No
|
-
|
Foreign key
|
6
|
Jumlah_barang_stok
|
Num
|
10
|
No
|
-
|
|
7
|
Harga_toko
|
num
|
7
|
No
|
-
|
|
Tabel
masuk_toko :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_barang
|
Char
|
10
|
No
|
-
|
Foreign key
|
2
|
No_seri
|
Varchar
|
10
|
No
|
-
|
Foreign key
|
3
|
Tgl_masuk_toko
|
Date
|
|
No
|
-
|
|
4
|
Jumlah_barang_masuk_toko
|
Num
|
10
|
No
|
-
|
|
Tabel
daftar_barang_beli :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_transaksi
|
Char
|
10
|
No
|
-
|
Foreign key
|
2
|
Id_barang
|
Char
|
10
|
No
|
-
|
Foreign key
|
3
|
Nama_barang
|
Varchar
|
30
|
No
|
-
|
|
4
|
Merk
|
Varchar
|
30
|
No
|
-
|
|
5
|
Type
|
Varchar
|
30
|
No
|
-
|
|
6
|
No_seri
|
Char
|
10
|
No
|
-
|
Primary key
|
7
|
Harga
|
Num
|
7
|
No
|
-
|
|
8
|
Jumlah_beli
|
Num
|
10
|
No
|
-
|
|
9
|
Tgl_masuk_toko
|
Date
|
|
No
|
-
|
|
Tabel
transaksi_stok :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
No_nota
|
Varchar
|
10
|
No
|
-
|
Primary key
|
2
|
Id_barang
|
Char
|
10
|
No
|
-
|
Foreign key
|
3
|
Jumlah_barang_kulak
|
Num
|
7
|
No
|
-
|
|
4
|
Tgl_traksaksi
|
Date
|
|
No
|
-
|
|
5
|
Id_karyawan
|
char
|
10
|
No
|
-
|
Foreign key
|
Tabel
transaksi_penjualan :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_transaksi
|
Char
|
10
|
No
|
-
|
Primary key
|
2
|
Id_pembeli
|
Char
|
10
|
No
|
-
|
|
3
|
Nama_pembeli
|
Varchar
|
30
|
No
|
-
|
|
4
|
Alamat_pembeli
|
Varchar
|
30
|
No
|
-
|
|
5
|
No_tlp
|
Varchar
|
12
|
Yes
|
-
|
|
6
|
Id_karyawan
|
Char
|
10
|
No
|
-
|
Foreign key
|
7
|
Tgl_beli
|
Date
|
|
No
|
-
|
|
8
|
Jumlah_beli
|
Num
|
10
|
No
|
-
|
|
9
|
Total_bayar
|
Num
|
7
|
No
|
-
|
|
Tabel
nota_stok :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
No_nota
|
Varchar
|
10
|
No
|
-
|
Foreign key
|
2
|
Harga_total
|
Num
|
7
|
No
|
-
|
|
Tabel
data_karyawan :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_karyawan
|
Char
|
10
|
No
|
-
|
Primary key
|
2
|
Nama_karyawan
|
Varchar
|
30
|
No
|
-
|
|
3
|
Alamat_karyawan
|
Varchar
|
30
|
No
|
-
|
|
4
|
Id_jabatan
|
Char
|
10
|
No
|
-
|
Foreign key
|
5
|
Jenis_kelamin
|
Varchar
|
2
|
Yes
|
-
|
|
6
|
No_tlp
|
varchar
|
12
|
No
|
-
|
|
Tabel
pengeluaran_administrasi :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
No_nota
|
Varchar
|
10
|
No
|
-
|
Foreign key
|
2
|
Jumalah_pengeluaran
|
Num
|
10
|
No
|
-
|
|
3
|
Total_pengeluaran
|
Num
|
10
|
No
|
-
|
|
Tabel
pemasukan_administras :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_transaksi
|
Char
|
10
|
No
|
-
|
Foreign key
|
2
|
Jumlah_uang
|
Num
|
10
|
No
|
-
|
|
Tabel
penggajian_karyawan :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_karyawan
|
Char
|
10
|
No
|
-
|
Foreign key
|
2
|
Gaji
|
Varchar
|
7
|
No
|
-
|
|
3
|
Bonus_gaji
|
Varchar
|
7
|
No
|
-
|
|
4
|
Total_gaji
|
Num
|
7
|
No
|
-
|
|
Tabel
jabatan :
No
|
Nama Field
|
Tipe
|
Ukuran
|
Null
|
Default
|
keterangan
|
1
|
Id_jabatan
|
Char
|
10
|
No
|
-
|
Primary key
|
2
|
Nama_jabatan
|
Varchar
|
30
|
No
|
-
|
|
3
|
gaji
|
varchar
|
7
|
No
|
-
|
|
Realtionship
:
0 comments:
Post a Comment