This problem has come again
SQL Ootput
select 201604 as '', 201703 as '', 'AHMEDABAD ' as '', 'G0182 ' as '', 'N' as ''
select 'dbr.sum', 'WorkloadPerMonth'
select 'dbr.hsum', 'WorkloadPerMonth'
select 'dbr.calc', 'IndexWL1', '(SAPQuantity/Workload) * 100'
select 'dbr.calc', 'IndexWL2', '(Workload/SAPQuantity) * 100'
select 'dbr.calc', 'MaterialCostPerTest', '(SAPAmount/Workload)'
select 'dbr.calc', 'EarningPerTest', '(TotalBiz/Workload)'
select 'dbr.calc', 'MaterialPerc', '(SAPAmount/TotalBiz) * 100'
select 'AHMEDABAD' as 'PPRCTR', 'TSH(Ultrasensitive),serum by CMIA' as 'GROUPNAME', 39839.0 as 'SAPQuantity', 504722.42 as 'SAPAmount', 35826 as 'Workload', 2985 as 'WorkloadPerMonth', 2014496.59 as 'TotalBiz', null as 'IndexWL1', null as 'IndexWL2', null as 'MaterialCostPerTest', null as 'EarningPerTest', null as 'MaterialPerc'
select 'dbr.sum', 'SAPQuantity'
select 'dbr.sum', 'SAPAmount'
select 'dbr.sum', 'Workload'
select 'dbr.sum', 'TotalBiz'
select 'dbr.hsum', 'SAPQuantity'
select 'dbr.hsum', 'SAPAmount'
select 'dbr.hsum', 'Workload'
select 'dbr.hsum', 'TotalBiz'
select 'dbr.calc', 'IndexWL1', '(SAPQuantity/Workload) * 100'
select 'dbr.calc', 'IndexWL2', '(Workload/SAPQuantity) * 100'
select 'dbr.calc', 'MaterialCostPerTest', '(SAPAmount/Workload)'
select 'dbr.calc', 'EarningPerTest', '(TotalBiz/Workload)'
select 'dbr.calc', 'MaterialPerc', '(SAPAmount/TotalBiz) * 100'
select 'AHMEDABAD' as 'PPRCTR', 'TSH(Ultrasensitive),serum by CMIA' as 'GROUPNAME', '201604' as 'nmonth', 3427.0 as 'SAPQuantity', 53975.25 as 'SAPAmount', 2926 as 'Workload', 173510.95 as 'TotalBiz', null as 'IndexWL1', null as 'IndexWL2', null as 'MaterialCostPerTest', null as 'EarningPerTest', null as 'MaterialPerc'
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201605', 3294.0, 51880.5, 3006, 166545.59, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201606', 3433.0, 54069.75, 3080, 173600.19, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201607', 3323.0, 52337.25, 3011, 173880.77, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201608', 2866.0, 45139.5, 2594, 150951.4, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201609', 3409.0, 53691.75, 3107, 184488.84, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201610', 2670.0, 42052.5, 2313, 133840.79, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201611', 2466.0, 38839.5, 2249, 126722.56, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201612', 3206.0, 50494.5, 2912, 159901.77, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201701', 3186.0, 50179.5, 2799, 152816.45, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201702', 3846.0, 4961.4, 3395, 179478.52, null, null, null, null, null
union all
select 'AHMEDABAD', 'TSH(Ultrasensitive),serum by CMIA', '201703', 4713.0, 7101.02, 4434, 238758.76, null, null, null, null, null
Please help