Viewing 2 posts - 1 through 2 (of 2 total)
Dear David,
Yes I substitute 41 with each item current stock. Below is my original query:
WITH Age ([ItemCode],A,B,C,D) AS (
SELECT [ItemCode],
SUM(CASE WHEN DateDiff(day,DateRecd,GetDate()) BETWEEN 0 AND 30 THEN QtyRecvd ELSE...
April 10, 2011 at 4:48 am
#1309598
Dear David!
Thanks for great support.
This really help for me. Just one confusion for following line:
CASE WHEN A+B > 41 THEN (41-A) ELSE B END AS B
for...
April 7, 2011 at 5:21 am
#1308418