Hi
Any one help to get below output
SrNo ShiftStartDate ShiftEndDate
1 01-01-2013 25-01-2014
2 26-01-2014 25-09-2015
3 26-09-2015 Getdate()
i am passing fromdate(01-09-2014) and fromdate(20-10-2015)
based on this passing date if any date either fromdate or Todate falling between any Shiftfromdate and Shifttodate then that record should display.
Schenario 1 :
I/P
fromdate(01-09-2014) and fromdate(20-06-2015)
o/t 2 26-01-2014 25-09-2015
Schenario 2 :
I/P
fromdate(01-09-2014) and fromdate(26-09-2015)
o/T
2 26-01-2014 25-09-2015
3 26-09-2015 Getdate()
Schenario 3 :
I/P
fromdate(01-09-2012) and fromdate(01-01-2016)
o/T
1 01-01-2013 25-01-2014
2 26-01-2014 25-09-2015
3 26-09-2015 Getdate()
Thanks
Santosh