Q. List the customers (name) and the total amount of all their orders.


Consider  this table --


You can understand by seeing this video ---





Answer =

SELECT NAME , SUM (QUANTITY * PRICE) FROM ORDERS , PARTS WHERE ORDERS.PARTNUM = PARTS.PARTNUM  GROUP BY NAME ;

4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. I am in class 12th. Thankuu vry much for solutions.

    ReplyDelete
  2. Hello , Can you pls tell me the page number of these tables (Sumita Arora Book)

    ReplyDelete
    Replies
    1. Sorry, beacuse we both have different book.

      Delete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post