Consider the following table: PRODUCT Table: PRODUCT PIDP 1001 P1002 P1003 P1004 PNAME Eraser Ball Pen Gel Pen Ruler PRICE 10.50 15.00 25.10 5.00 QUANTITY 5 2 3 1
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?
