I just wrote a query, but I'm not sure what type" of query to call it.In the LEFT JOIN statement, I use an AND statement. If there was no AND, it would be a simle "LEFT JOIN" query. With the "AND" statement, what would you call it? Is there any special name for it? SELECT t.TestID, t.TestName, ut.UserTestID, @UserID as UserIDFROM Test t LEFT JOIN UserTest ut ON ut.TestID = t.TestID AND ut.UserID = @UserIDWHERE ut.UserID = @UserIDOR ut.UserID IS NULLORDER BY t.TestName
BTW, this was a tough nut to crack until i figured out I could do the "AND" thing in the JOIN statementThanks!Michael<Yoda>Use the Search page you must. Find the answer you will.</Yoda>