Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a table named "sales" to illustrate aggregate function
- CREATE TABLE sales (
- order_id INT PRIMARY KEY, -- id transaksi penjualan
- product_name VARCHAR(50), -- nama produk
- quantity INT, -- kuantitas barang yang terjual
- price DECIMAL(10, 2), -- harga barang satuan
- order_date DATE -- tanggal pemesanan
- );
Advertisement
Add Comment
Please, Sign In to add comment