D
D
Dima Sokolov2017-06-16 22:13:40
SQL
Dima Sokolov, 2017-06-16 22:13:40

MS Access SQL how to get sum?

Such a query in MS Access displays a table of the contents of orders

SELECT OrderItem.ID, ProductID, OrderID, Quantity, 
P.Title,P.CurrentPrice, P.ID, (P.CurrentPrice* OrderItem.Quantity) AS Total
FROM OrderItem 
INNER JOIN Product AS P ON OrderItem.ProductID = P.ID

How to get the total amount for each OrderID?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question