I have two tables table 1 and table 2. Both have same name id column.
As it's a left outer join query, I have to use aliases.
In sortKeys, If I mention id , error is
Caused by: org.postgresql.util.PSQLException: ERROR: column reference "id" is ambiguous
In sortKeys, If I mention t1.id , error is
Caused by: org.postgresql.util.PSQLException: The column name t1.id was not found in this ResultSet.
How to handle such queries?
I am using latest spring boot version 2.2.5.RELEASE
I have seen other posts related to this issue on stackoverflow. However, those are in older versions of spring batch and hence I should not face this issue.