I have a table1 like this...
ID | Entry Code | Date |
123 | E | 9/3/13 |
123 | W | 9/9/13 |
123 | E | 10/28/13 |
123 | W | 12/11/13 |
123 | E | 2/12/14 |
123 | W | 2/19/14 |
123 | E | 2/25/14 |
I have another table2 with many number of dates for the same ID. I need to extract the dates from table2 that is between 9/3/13 and 9/9/13, 10/28/13 and 12/11/13, 2/12/14 and 2/19/14. In other words... I need to discard dates between each withdrawn and Entered record i.e dates between 9/9/13 and 10/28/13 , 12/11/14 and 2/12/14, 2/19/14 and 2/25/14 should not be pulled.
Is there any methods to make it simple?
Thanks in advance