Table structure
Create Table #FB_Totals (Year char(4),Client# varchar(6),Invoice varchar(20),Jan dec(9,2),Feb dec(9,2),Mar dec(9,2),Apr dec(9,2),May dec(9,2),Jun dec(9,2),Jul dec(9,2),Aug dec(9,2),Sep dec(9,2),Oct dec(9,2),Nov dec(9,2),
Dec dec(9,2))
Output should be as follows for TotalDays
2002,123456,Days,15 , 28, 9, 0,0,0,0,0,0,0,0,0
Output...