Write query based upon item table given. Itemno Iname Price Quantity 101 Soap 50 100 102 Powder 100 50 103 Face cream 150 25 104 Pen 50 200 105 Soap box 20 100 Display a report with item number,
Advertisements
Advertisements
Question
Write query based upon item table given.
| Itemno | Iname | Price | Quantity |
|---|---|---|---|
| 101 | Soap | 50 | 100 |
| 102 | Powder | 100 | 50 |
| 103 | Face cream | 150 | 25 |
| 104 | Pen | 50 | 200 |
| 105 | Soap box | 20 | 100 |
Display a report with item number, item name and total price. (total price = price * quantity).
Code Writing
Advertisements
Solution
SELECT Itemno, Iname, Price * Quantity AS TotalPrice FROM Item;shaalaa.com
Is there an error in this question or solution?
