select id from table where id in ( select * from table2 )

Version imprimable