I have a database that manages courses for a watersports centre. I have a relatively complex SQL query which will create a table with the following columns among others.
"Course title", "Start Date", "Duration (Days)"
eg.
XYZ Sailing Course 12/01/17 3
ABC Windsurfing Course 13/01/17 2
I want to create a view/query which has a row for each day that a course is course. So for the above would display
XYZ Sailing Course 12/01/17
XYZ Sailing Course 13/01/17
ABC Windsurfing Course 13/01/17
XYZ Sailing Course 14/01/17
ABC Windsurfing Course 14/01/17
Luckily if a course runs across several days it's at the same time, so it is only the date field which needs to change in the otherwise duplicate rows. Also the days are always sequential, if a course lasted several days there would never be a gap in the middle. Is there an elegant way to create this output I have not thought of (or even a messy one - I'm stuck!)
Many thanks in advance for any light you might shed.