I have the following data plus some other additional tables that I am working on.
id ClinicId MonthsInOperation Budget Revenue
1 1232 12 2000
2 1534 8 3500
3 1767 10 2500
4 1232 13 3000
5 1534 2 4000
What I ultimately need to generate is(Table Structure):
ClinicInfo(Static Columns) + Selected Month------------->> End of Year(Dynamic Columns)
Dynamic Columns
will have the budget information for specific month (For example Table structure + Data
):
ClinicInfo(Static Columns) + Feb 2013-------------------->> December 2013
-------------------------- 2000+-------+-------------------+ 4500
I haven't used PIVOT before, not sure if that is what I need here.