Szukasz klauzuli IN select row_x from table_1 where row_y IN ( select row_a from table_2 where row_b = x )