对此的标准 SQL 查询是(假设您需要场地的 ID 和名称):
SELECT a.lname as lname, a.fname as fname, a.email as email,
a.address1 as address1, a.address2 as address2, a.city as city,
a.state as state, a.zip as zip, a.venue_id as venue_id,
b.venue_name as venue_name, a.dtelephone as dtelephone,
a.etelephone as etelephone, a.tshirt as tshirt
FROM volunteers_2009 a, venues b
WHERE a.venue_id = b.id
AND a.venue_id IS NOT NULL
UNION ALL
SELECT a.lname as lname, a.fname as fname, a.email as email,
a.address1 as address1, a.address2 as address2, a.city as city,
a.state as state, a.zip as zip, a.venue_id as venue_id,
'' as venue_name, a.dtelephone as dtelephone,
a.etelephone as etelephone, a.tshirt as tshirt
FROM volunteers_2009 a
WHERE a.venue_id IS NULL