Надеюсь, я понял ваш вопрос
select * from table where fld1 in (
select fld1 from table
where fld2 in (10,20)
group by fld1
having count(distinct(fld2)) = 2)
Если вам не нужно извлекать все строки
select fld1 from table
where fld2 in (10,20)
group by fld1
having count(distinct(fld2)) = 2
этого запроса достаточно.