Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9129

Re: Batch quantities do not match Item quantities

$
0
0

Hi,

 

Check if you have different results from the following two queries:

 

SELECT    ItemCode, WhsCode, SUM(Quantity) AS Sum_OIBT_Q  

FROM          dbo.OIBT

GROUP BY ItemCode, WhsCode

HAVING   (SUM(Quantity) <> 0)

 

AND

 

SELECT    ItemCode, WhsCode, SUM(Quantity) AS Sum_OIBT_Q  

FROM          dbo.OIBT

WHERE status =0

GROUP BY ItemCode, WhsCode

HAVING   (SUM(Quantity) <> 0)

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 9129

Latest Images

Trending Articles



Latest Images