sql server:
"select * from table_1,table_2 where table_1.id =convert(int,table_2.id_x)"