sir i am writing background query to retrieve last of qty
i am having production consumable product,maintenance
consumable product with product_id M1 TO m1000
and tools consumable product(t1 to t1000).
i want to retrieve item_code, productname, unit, max(ID) AND LAST
Qty i am getting all these things except last of qty in the query result
kindly help me
how should i get last of qty
SELECT DISTINCTROW PRODUCTION.Item_code, PRODUCTION.Productname, PRODUCTION.unit, Max(PRODUCTION.ID) AS [Max Of ID], Last(PRODUCTION.Qty) AS LastOfQty
FROM PRODUCTION
GROUP BY PRODUCTION.Item_code, PRODUCTION.Productname, PRODUCTION.unit
kindly find part detail attachmet :
it is very very urgent
i am having production consumable product,maintenance
consumable product with product_id M1 TO m1000
and tools consumable product(t1 to t1000).
i want to retrieve item_code, productname, unit, max(ID) AND LAST
Qty i am getting all these things except last of qty in the query result
kindly help me
how should i get last of qty
SELECT DISTINCTROW PRODUCTION.Item_code, PRODUCTION.Productname, PRODUCTION.unit, Max(PRODUCTION.ID) AS [Max Of ID], Last(PRODUCTION.Qty) AS LastOfQty
FROM PRODUCTION
GROUP BY PRODUCTION.Item_code, PRODUCTION.Productname, PRODUCTION.unit
kindly find part detail attachmet :
it is very very urgent