Guest User

Untitled

a guest
Apr 9th, 2026
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. -- Create a table named "sales" to illustrate aggregate function
  2. CREATE TABLE sales (
  3. order_id INT PRIMARY KEY, -- id transaksi penjualan
  4. product_name VARCHAR(50), -- nama produk
  5. quantity INT, -- kuantitas barang yang terjual
  6. price DECIMAL(10, 2), -- harga barang satuan
  7. order_date DATE -- tanggal pemesanan
  8. );
Advertisement
Add Comment
Please, Sign In to add comment