select field1, field2, field3 from venues, volunteers_2009 where volunteers_2009.venue_id = venues.id
Galen
2008-10-13 22:14:00
select field1, field2, field3 from venues, volunteers_2009 where volunteers_2009.venue_id = venues.id
General SQL LEFT Outer join syntax.
SELECT volunteers.id, volunteers.lname, volunteers.fname, volunteers.venue_id, venues.venue_name FROM Volunteers_2009 AS Volunteers LEFT OUTER JOIN Venues ON (Volunteers.venue_id = Venues.id)
I cannot add any comment, but the syntax select field1, field2, field3 from venues, volunteers_2009 where volunteers_2009.venue_id = venues.id will only gave you volunteers with a venue; not those without a venue.