The document shows SQL commands used to create and populate a database table called "barang" with product data. It creates the table with fields for product code, name, quantity and price. Several rows of sample product data are inserted. Additional fields for quantity and price are later added and populated. The queries update pricing for specific products matching criteria like quantity amount. In the end, the table contains a variety of cigarette product records with unique codes, names, quantities and individual unit prices.
The document shows SQL commands used to create and populate a database table called "barang" with product data. It creates the table with fields for product code, name, quantity and price. Several rows of sample product data are inserted. Additional fields for quantity and price are later added and populated. The queries update pricing for specific products matching criteria like quantity amount. In the end, the table contains a variety of cigarette product records with unique codes, names, quantities and individual unit prices.
The document shows SQL commands used to create and populate a database table called "barang" with product data. It creates the table with fields for product code, name, quantity and price. Several rows of sample product data are inserted. Additional fields for quantity and price are later added and populated. The queries update pricing for specific products matching criteria like quantity amount. In the end, the table contains a variety of cigarette product records with unique codes, names, quantities and individual unit prices.
mysql> update barang set jumlah =22 where (kdbrg='brg01') or (kdbrg='brg04'); Query OK, 2 rows affected (0.02 sec) Rows matched: 2 Changed: 2 Warnings: 0
mysql> update barang set jumlah =101 where (kdbrg='brg03') or (kdbrg='brg05'); Query OK, 2 rows affected (0.03 sec) Rows matched: 2 Changed: 2 Warnings: 0