I want to write a query that will give me a dynamic amount of columns back.
What I want to do, I want to create a calendar application, in which for
each employee, I want to show if he is in the office or not.
this should look like:
ID, Name, 1,2,3,4,5,6,7,8
88,Leo,0,0,1,1,1,0,0,1
The amount of columns is dynamic, and is a period of time, with a column for
each day.
Any suggestions what the best approach to this could be?
Thanks
Leo