I have a table with the following columns:
Batch_Number, RM_Code, RM_Qty, RM_Lot_Number
The table has multiple records because a Batch_Number may use an RM_Code (Raw Material Code) from different RM_Lot_Number and loading of RM_Code, the ingredients, are at different stages of a batch cook, where each load of ingredient has a record. Please help me with an SQL statement, or any other solution other than looping because it takes long, that will display the following:
Batch_Number, RM_Code, Total_RM_Qty, Comma_Separated_List_Of_Unique_RM_Lot_Number
I am using Classic ASP. Please note also that STRING_AGG does not work in Microsoft Windows 2000 Server Service Pack 4 that I am using. Thank you.