Hi all, I've been working on this for a while now without any success.
Basically I have a table which contains class register information and I want to select all consecutive dates from a given date.
Eg. Based on the below table, if the query passed 2010-01-01 it would return 2010-01-02 -> 2010-01-04, if it was passed 2010-01-03 it would return 2010-01-04.
Table Structure
Date Event ....... other fields
2010-01-01 Some event
2010-01-02 Some event
2010-01-03 Some event
2010-01-04 Some event
2010-01-21 Some event
2010-02-11 Some event
2010-02-19 Some event
2010-02-20 Some event
Any advice would be much appreciated.
Cheers.