Prices with GST
Easy
Show each product's name and gst_price: price plus 10%, rounded to 2 decimals.
Tables: customers(customer_id, name, city, country, joined) · products(product_id, name, category, price) · orders(order_id, customer_id, order_date, status) · order_items(order_id, product_id, quantity, unit_price)
Your query✔ Solved
Show the expected result
| name | gst_price |
|---|---|
| Wireless mouse | 31.9 |
| Mechanical keyboard | 130.9 |
| USB-C hub | 53.9 |
| 27-inch monitor | 361.9 |
| Noise-cancelling headphones | 273.9 |
| Python Crash Course (book) | 49.5 |
| Deep Learning (book) | 97.9 |
| SQL Pocket Guide | 27.5 |
| Standing desk | 603.9 |
| Ergonomic chair | 438.9 |
| Desk lamp | 64.9 |
| Coffee beans 1 kg | 35.2 |
| Green tea, 100 bags | 13.2 |
| A5 notebook | 9.35 |
| Gel pens, pack of 10 | 12.1 |
15 rows
Show a solution
SELECT name, ROUND(price * 1.1, 2) AS gst_price FROM products;
SQL used
New to SQL? The free SQL course teaches everything these problems use, with a self-checking exercise in every lesson.