I have two tables called TableA and TableB
TableA
Col1 ID
Col2 CDate
Cpl2 name
TableB
Col1 ID
Col2 CDate
Cpl2 name
for particular time period i need to select rows from tableA not exist in TableB
Like
SELECT * FROM TableA WHERE (CDate BETWEEN date1 and date2) AND ID NOT IN
(SELECT ID FROM TableB WHERE (CDate BETWEEN date1 and date2))
Is there any best way to do this, please help me if you have any solutions.
Thanks
srgangu