SELECT * FROM Table1 INNER JOIN Table2 ON TO_NUMBER(Table1.NumberColumn) = TO_NUMBER(Table2.VarcharColumn);