Advertisements
Advertisements
प्रश्न
Using the table SALE of CARSHOWROOM database, write SQL queries for the following:
- Display the InvoiceNo and commission value rounded off to zero decimal places.
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
