Hi
Is there any Stored procedure to calculate Batch Wise Item Cost
Thanks
Hi
Is there any Stored procedure to calculate Batch Wise Item Cost
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naveen KumarRank #249 · 10K reputationPosted Nov 15, 2023, 3:02 AM EST
Please be more specific with your question.
As per my assumption, you will be having a tables like Batch and Item, joining those you can get the item cost.
SELECT B.BatchID, I.ItemID, I.ItemName, SUM(B.Cost) AS BatchTotalCost FROM TBL_Batch B INNER JOIN TBL_Items I ON B.ItemID = I.ItemID GROUP BY B.BatchID, I.ItemID, I.ItemName