मराठी

Find sum of Sale Price of the cars purchased by the customer having ID C0001 from table SALE.

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1: Querying and SQL Functions - Intext Questions [पृष्ठ १४]

APPEARS IN

एनसीईआरटी Informatics Practices [English] Class 12
पाठ 1 Querying and SQL Functions
Intext Questions | Q a) | पृष्ठ १४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×