I have a SQL table with:
Date | Name | Procedure | Count
Date and Name can be repeated ad nauseam, until we run out of procedures to be counted.
I want to separate it on a spreadsheet so that each separate sheet is a 'Name'.
I want one line per date, and I want the procedures to become column headings, with the count for each under that column for that day.
There may be an easy way to do this but I've been looking at this too long (I had dumb problems with the spreadsheet gem at first).
Of course, if the answer is "Do it in SQL", then.. er.. how do I do it in SQL? ;-)
Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters)
What is the nature of conflict?
Date | Name | Procedure | Count
Date and Name can be repeated ad nauseam, until we run out of procedures to be counted.
I want to separate it on a spreadsheet so that each separate sheet is a 'Name'.
I want one line per date, and I want the procedures to become column headings, with the count for each under that column for that day.
There may be an easy way to do this but I've been looking at this too long (I had dumb problems with the spreadsheet gem at first).
Of course, if the answer is "Do it in SQL", then.. er.. how do I do it in SQL? ;-)
Tao Te Ching Discussions : Chapter 9 (includes links to previous chapters)
What is the nature of conflict?