हिंदी

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 - Informatics Practices

Advertisements
Advertisements

प्रश्न

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:

  1. SELECT 10+MOD(QUANTITY,3) FROM PRODUCT WHERE PNAME = "Eraser";
  2. SELECT ROUND(PRICE,2)*QUANTITY FROM PRODUCT WHERE QUANTITY>2;
  3. SELECT UCASE(RIGHT(PNAME,2)) FROM PRODUCT;
लघु उत्तरीय

उत्तर

  1. 12
  2. 52.50
    75.30
  3. ER
    EN
    EN
    ER
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (April) Set 4
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×