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 ;
I am in class 12th. Thankuu vry much for solutions.
ReplyDeleteWelcome :)
DeleteHello , Can you pls tell me the page number of these tables (Sumita Arora Book)
ReplyDeleteSorry, beacuse we both have different book.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )