Pertanyaan Anda agak membingungkan. Sepertinya JOIN
simple sederhana harus bekerja:
SELECT s.group_id
FROM stuff s
INNER JOIN something so ON s.group_id = so.group_id
WHERE s.member_id = 11 AND
so.some_id = 7
Pertanyaan Anda agak membingungkan. Sepertinya JOIN
simple sederhana harus bekerja:
SELECT s.group_id
FROM stuff s
INNER JOIN something so ON s.group_id = so.group_id
WHERE s.member_id = 11 AND
so.some_id = 7