XAMPP
XAMPP
XAMPP
202153059
Kelas D
Laporan Praktikum
Pertemuan Ke-6
Kode Pemograman :
MariaDB [(none)]> use pembelian;
Database changed
MariaDB [pembelian]> # 1. Tampilkan nama barang dan harganya paling mahal
MariaDB [pembelian]> select * from barang;
+-----------+---------------------+-------+-------------+---------+
| ID_Barang | Nama_Barang | Harga | Jumlah_Stok | ID_Toko |
+-----------+---------------------+-------+-------------+---------+
| A001 | Kotak Pengsil | 40000 | 20 | T1 |
| A002 | Kotak Kado | 20000 | 10 | T1 |
| A003 | Meja Lipat Kayu | 30000 | 10 | T1 |
| A004 | Meja Lipat Pelastik | 20000 | 15 | T1 |
| B001 | Penghapus | 2000 | 50 | T2 |
| B0010 | Kertas Pelangi | 6000 | 100 | T3 |
| B002 | Pengsil | 1000 | 20 | T2 |
| B003 | Rautan | 1000 | 20 | T2 |
| B004 | Penggaris | 5000 | 40 | T2 |
| B005 | Pulpen | 3000 | 80 | T2 |
| B006 | Sepidol | 3000 | 80 | T2 |
| B007 | Kertas Volio | 500 | 100 | T3 |
| B008 | Kertas HVS | 200 | 100 | T3 |
| B009 | Kertas Manila | 6000 | 100 | T3 |
+-----------+---------------------+-------+-------------+---------+
14 rows in set (0.001 sec)
5. Tampilkan semua