Advertisements
Advertisements
Question
Consider the following table: PRODUCT
Table: PRODUCT
| PID | PNAME | PRICE | QUANTITY |
| P1001 | Eraser | 10.50 | 5 |
| P1002 | Ball Pen | 15.00 | 2 |
| P1003 | Gel Pen | 25.10 | 3 |
| P1004 | Ruler | 5.00 | 1 |
Find the output of the following SQL queries:
SELECT10+MOD(QUANTITY,3)FROMPRODUCTWHERE PNAME= "Eraser";SELECT ROUND(PRICE,2)*QUANTITYFROMPRODUCTWHEREQUANTITY>2;SELECT UCASE(RIGHT(PNAME,2))FROMPRODUCT;
Short Answer
Advertisements
Solution
- 12
- 52.50
75.30 - ER
EN
EN
ER
shaalaa.com
Is there an error in this question or solution?
