Viewing 2 posts - 1 through 2 (of 2 total)
you cannot use kill with a variable. one way to overcome this problem is using dynamic sql.
March 5, 2004 at 6:42 pm
#497688
your query will return MAX(Quantity) for each PurchaseNo. but i want to get something else. Consider the following de-normalized view of data:
StockId P_No P_Date ItemId Quantity
1 1 1/1/2004 100 50
1 2 1/2/2004 100...
March 5, 2004 at 4:28 pm
#497681