Judul : MySQL (database TOKO_ABC 1-50)
link : MySQL (database TOKO_ABC 1-50)
MySQL (database TOKO_ABC 1-50)
1. Create database TOKO_ABC;
2. Use TOKO_ABC;
3. Show tables;
4. Create table barang (Kode_Barang char (10) not null unique, Nama_Barang char (20) not null, Satuan char (10), Primary key (Kode_Barang));
5. Show tables;
6. Desc barang;
7. Alter table barang ADD (harga int (10));
8. Desc barang;
9. Alter table barang MODIFY Nama_Barang varchar (20) not null;
10. Desc barang;
11. Alter table barang MODIFY Satuan char (15);
12. Desc barang;
13. Alter table barang ADD Jenis_Barang char (15);
14. Desc barang;
15. Create table Customer (ID_Customer char (10) not null unique, Nama_Customer char (15), Alamat_Customer char (15));
16. Show tables;
17. Desc Customer;
18. Alter table customer MODIFY Nama_Customer char (25);
19. Desc customer;
20. Alter table customer ADD Kota char (15);
21. Desc customer;
22. Alter table customer MODIFY Nama_Customer char (25) not null;
23. Desc customer;
24. Create table Supplier (ID_Supplier char(10) not null unique, Nama_Supplier char (15), Alamat_Supplier char (5), Primary key (ID_Supplier));
25. Show tables;
26. Desc supplier;
27. Alter table supplier ADD City char (15);
28. Desc supplier;
29. Alter table supplier MODIFY Nama_Supplier char (25);
30. Desc supplier;
31. Alter table supplier MODIFY Alamat_Supplier char (30);
32. Desc supplier;
33. Alter table supplier MODIFY Nama_Supplier char (25) not null;
34. Desc supplier;
35. Create table Karyawan (ID_Karyawan char (10) not null unique, Nama_Karyawan char (15), Alamat_Karyawan char (5), Primary key (ID_Karyawan));
36. Show tables;
37. Desc karyawan;
38. Alter table karyawan ADD Kota _Karyawan char (15);
39. Desc karyawan;
40. Alter table karyawan MODIFY Alamat_Karyawan char (25);
41. Desc karyawan;
42. Alter table karyawan ADD (tgl_lhr date, Asal_SMU char (20), jml_ank int (2));
43. Desc karyawan;
44. Alter table karyawan RENAME employee;
45. Show tables;
46. Create table Jual (No_Faktur char (10) not null, Tgl_Faktur date, Kode_Barang char (10) not null, Quantity int (4), Primary key (No_Faktur, Kode_Barang));
47. Show tables;
48. Desc jual;
49. Show database;
Maaf ni temen2, yang nomer 51-100 aku belum dapet petunjuk buat ngerjainnya…hehehe
Nanti kalo sudah dapet petunjuk atau contekan dari temen yang lain Insya’ALLAH tak posting lagi…………Wassalam……………..
Demikianlah Artikel MySQL (database TOKO_ABC 1-50)
Sekianlah artikel MySQL (database TOKO_ABC 1-50) kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel MySQL (database TOKO_ABC 1-50) dengan alamat link https://soeltonyahmad-go.blogspot.com/2011/05/mysql-database-tokoabc-1-50.html