Question:
Discover all smartwatches that are currently on sale with a discount. Display the 'product_id', 'product_name', 'brand', and 'discount' percentage for each smartwatch offer.
Sample Input Tables:
Products Table:
product_id | product_name | category | brand | price | stock_quantity | discount |
---|---|---|---|---|---|---|
8 | Watch Series 6 | Smartwatch | Apple | 399 | 50 | 5 |
15 | Mi Band 5 | Smartwatch | Xiaomi | 45 | 60 | 0 |
21 | Galaxy Watch 3 | Smartwatch | Samsung | 400 | 30 | 10 |
Sample Output:
product_id | product_name | brand | discount |
---|---|---|---|
8 | Watch Series 6 | Apple | 5 |
21 | Galaxy Watch 3 | Samsung | 10 |
This output is just for illustrative purposes. The actual output could be different from the one you see above.
SELECT product_id, product_name, brand, discount
FROM Products
WHERE category = 'Smartwatch' AND discount > 0;
English:
Products
table, targeting specifics about smartwatches.Hinglish:
Products
table se jankari pull karna shuru karte hain, smartwatches ke bare me specifics target karke.