SELECT [customercode] ,[customer] ,[yr] ,f2+f4 as '1월' ,f2+f4+f6+f8 as '2월' ,f2+f4+f6+f8+f10+f12 as '3월' ,f2+f4+f6+f8+f10+f12+f14+f16 as '4월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 as '5월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24 as '6월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28 as '7월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28+f30+f32 as '8월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28+f30+f32+f34+f36 as '9월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28+f30+f32+f34+f36+f38+f40 as '10월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28+f30+f32+f34+f36+f38+f40+f42+f44 as '11월' ,f2+f4+f6+f8+f10+f12+f14+f16+f18+f20 +f22+f24+f26+f28+f30+f32+f34+f36+f38+f40+f42+f44+f46+f48 as '12월' FROM [00Backdata] where yr='2021' and orderby='41.7' and customercode = '176'