How to make it work if the column names are different in both the tables?