I have a table
ID | DATE
1 | 16-01-2012
2 | 17-01-2012
3 | 18-01-2012
4 | 22-01-2012
5 | 28-01-2012
6 | 02-02-2012
My task is:
I have a date variable which is initialised to 16-01-2012 and I have to find all rows which are in continuum with 16-01-2012 i.e 17-01-2012 and 18-01-2012.
Please help.