I expected that to work as well (in fact, I thought that I had used this approach successfully in the past). I tried it again this time, however, and it didn't work.
Some rows from "lessons" were missing. Would it matter that while "lessons" has a primary key of "LessonID", "students" has a joint primary key of "LessonID" and "UserID"? Or perhaps this is an oddity of SQL Server 2000? Thanks, Steve > SELECT * > FROM lessons > LEFT JOIN students ON lessons.lessonID = students.lessonID > WHERE students.studentID = #studentID# > OR students.studentID IS NULL > Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198696 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

