Jul 8, 2009 #1 hapax Programmer Nov 10, 2006 105 US I have the following query: Select * FROM Unit u inner join Event ev on ev.UnitId = u.UnitId But what I really want is something that does the opposite - returns all the records where no ev.UnitId exists for a given u.UnitId. How do I do that?
I have the following query: Select * FROM Unit u inner join Event ev on ev.UnitId = u.UnitId But what I really want is something that does the opposite - returns all the records where no ev.UnitId exists for a given u.UnitId. How do I do that?
Jul 8, 2009 1 #2 markros Programmer May 21, 2007 3,150 US Code: Select * FROM Unit u LEFT join Event ev on ev.UnitId = u.UnitId where ev.UnitID IS NULL Upvote 0 Downvote