View Single Post
Old 04-21-2005, 05:37 PM   #6 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 285
technobard is on a distinguished road
Well, you might try this approach:

First, find all of the distinct visitor_id values that did attend on a given date.
select distinct visitor_id from attendance
where date = '2004-10-12'


Then select what you want from the VISITOR table where the visitor_id is not in the first list.
select distinct .... from visitor
where visitor_id not in (select distinct visitor_id from attendance
where date = '2004-10-12')
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote