Apr 29, 2005 #1 Newbi1 Programmer Apr 4, 2005 64 US I have 2 tables Tbl1, tbl2 and both tables have a record in it: rec1. What I need is a statement that will allow me to get all the records in tbl1 where they are not = to the record in tbl2.
I have 2 tables Tbl1, tbl2 and both tables have a record in it: rec1. What I need is a statement that will allow me to get all the records in tbl1 where they are not = to the record in tbl2.
Apr 29, 2005 1 #2 Juice05 Programmer Dec 4, 2001 247 US Use a Join or: Select ID From Tbl1 Where ID Not In (Select ID From Tbl2) Upvote 0 Downvote
Apr 29, 2005 1 #3 checkai Programmer Jan 17, 2003 1,629 US the join method Code: select t1.rec1 From table1 t1 left join table2 t2 on t1.recid = t2.recid where t2.recid is null "...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..." Upvote 0 Downvote
the join method Code: select t1.rec1 From table1 t1 left join table2 t2 on t1.recid = t2.recid where t2.recid is null "...we both know I'm training to become a cagefighter...see what happens if you try 'n hit me..."
Apr 29, 2005 Thread starter #4 Newbi1 Programmer Apr 4, 2005 64 US thanks... It slipped my mind Upvote 0 Downvote