I have a SQL table that holds financial data. There are 12 columns labled Acct_Per01 through Acct_Per12. I need to select specific GL codes and sum the values in these columns as various groupings, Private, Commercial, Ancillary etc. for each of 14 hospitals.
How can I best create a working table where I have one record for each hospital for each fiscal period.
I want the final table structure be be like the sample below.
Any thoughts on the best way to do this?
Fiscal_Period 200506
Hospital ALX
Private 79,500
Commercial 0
Ancillary 650,457
How can I best create a working table where I have one record for each hospital for each fiscal period.
I want the final table structure be be like the sample below.
Any thoughts on the best way to do this?
Fiscal_Period 200506
Hospital ALX
Private 79,500
Commercial 0
Ancillary 650,457