need a query for following description [message #632336] |
Thu, 29 January 2015 03:43 |
|
pmrnk03
Messages: 3 Registered: January 2015
|
Junior Member |
|
|
I hav a table with id startdate and finish date
1. 10-02-2012. 25-10-2012
1. 31-11-2012. 19-9-2013
1. 30-10-2013. 15-5-2015
2. 10-01-2011. 25-10-2012
2 31-11-2012. 19-9-2013
2 30-10-2014. 15-5-2015
I need a query where I have to find the diff bw the first finishdate and the next start date
With following criteria
The date of enrolment shld be btwn 1st nov 2013 and 31 dec 2014
Thr shld be not more thn 30 days of gap betwn two enrollments...
Can any one please help me out with this query..
|
|
|
|
|
|
|