Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8735

SQL Query for listing Production Order

$
0
0

Hi Experts,

 

Please could someone help...

 

I have the following query;

SELECT T0.[DocNum], T0.[ItemCode], T2.[ItemName], T1.[BaseQty] FROM OWOR T0  INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode

 

However, I would like to add up the base quantity...

 

In the image attached you can see that there are lines that have the same item. rather than appearing on multiple lines is there a way we can add them together.

 

I hope I have explained this ok.


Viewing all articles
Browse latest Browse all 8735

Trending Articles