हिंदी

Using the table SALE of CARSHOWROOM database, write SQL queries for the following: a) Display the InvoiceNo and commission value rounded off to zero decimal places.

Advertisements
Advertisements

प्रश्न

Using the table SALE of CARSHOWROOM database, write SQL queries for the following:

  1. Display the InvoiceNo and commission value rounded off to zero decimal places.
  2. Display the details of SALE where payment mode is credit card..
कोड लेखन
Advertisements

उत्तर

a)

SELECT InvoiceNo, ROUND(Commission, 0) AS RoundedCommission 
FROM SALE;

b) 

SELECT * 
FROM SALE 
WHERE PaymentMode = 'Credit Card';
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1: Querying and SQL Functions - Intext Questions [पृष्ठ ७]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
अध्याय 1 Querying and SQL Functions
Intext Questions | Q 1. | पृष्ठ ७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×