Hi Balaji,
May I know why this should be the EXPECTED OUTPUT? How did you come up with it?
Because if we will based our filter in DATES, I think both CC,PQY and YY,PDY should be present in 3/20/2015 and 3/21/2015 because they have the same BEGDAT and ENDDAT..Am I right?
What will really be the basis of your result?
Regards,
Loed