brug LEFT JOIN
Tjenestetabel. Prøv denne forespørgsel
SELECT members.id, members.name,
IF(services.mid IS NULL, FALSE, TRUE) as services
FROM members
LEFT JOIN services ON (members.id = services.mid)
brug LEFT JOIN
Tjenestetabel. Prøv denne forespørgsel
SELECT members.id, members.name,
IF(services.mid IS NULL, FALSE, TRUE) as services
FROM members
LEFT JOIN services ON (members.id = services.mid)