sử dụng LEFT JOIN
Bảng dịch vụ, Hãy thử truy vấn này
SELECT members.id, members.name,
IF(services.mid IS NULL, FALSE, TRUE) as services
FROM members
LEFT JOIN services ON (members.id = services.mid)
sử dụng LEFT JOIN
Bảng dịch vụ, Hãy thử truy vấn này
SELECT members.id, members.name,
IF(services.mid IS NULL, FALSE, TRUE) as services
FROM members
LEFT JOIN services ON (members.id = services.mid)