Advertisements
Advertisements
Question
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..
Code Writing
Advertisements
Solution
a)
SELECT InvoiceNo, ROUND(Commission, 0) AS RoundedCommission
FROM SALE;
b)
SELECT *
FROM SALE
WHERE PaymentMode = 'Credit Card';
shaalaa.com
Is there an error in this question or solution?
