Advertisements
Advertisements
प्रश्न
Find sum of Sale Price of the cars purchased by the customer having ID C0001 from table SALE.
कोड लेखन
Advertisements
उत्तर
SELECT SUM(SalePrice) AS Total_Sale_Price
FROM SALE
WHERE CustId = 'C0001';
- SUM(SalePrice): Adds up all the values in the Sale Price column.
- WHERE CustomerID = 'C0001': Filters the table so it only calculates the sum for the customer with ID C0001.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
