select column_1 from theTable where column_2 in (123, 124) group by column_1 having count(*) = 2