I have several tables where you'll find common data (e.g. a course schedule with several classes on Monday, Tuesday, etc.) What I'm curious about is how I can generate a table structure and query to best display this. One Solution is something like this:
The data is currently stored like this: day, start time, end time, course name, course number. The solution I have in place right now is to compare the current record's value for "day" with the one from last record and if it's different, print out a new header.
Code:
--------------------------------------
| Class list |
--------------------------------------
| Monday |
--------------------------------------
|col1 | col2 | col 3 | col 4 | col 5 |
--------------------------------------
|col1 | col2 | col 3 | col 4 | col 5 |
--------------------------------------
| Tuesday |
--------------------------------------
|col1 | col2 | col 3 | col 4 | col 5 |
--------------------------------------
The data is currently stored like this: day, start time, end time, course name, course number. The solution I have in place right now is to compare the current record's value for "day" with the one from last record and if it's different, print out a new header.