This is what you are looking for:
select person_id from t
where group_id in (10, 20, 30)
group by person_id
having count(distinct group_id) = 3
Effectively, using this solution, the number of values ββin inshould correspond to the value with which you are comparing the score.
" ", , group_concat, : P
select person_id from t
where group_id in (10, 20, 30)
group by person_id
having group_concat(distinct group_id order by group_id) = '10,20,30'