This time I will show you an algorithm to do the dreaded bin-packaging using recursion and XML. First, create some sample data like this -- Prepare sample data DECLARE @Sample TABLE ( RowID INT IDENTITY ( 1 , 1 ) PRIMARY KEY CLUSTERED , Expense SMALLMONEY
Read More...