SELECT
c.CONSOL_INVOICE,
cu.name,
cu.CUST_CODE,
c.bu_name,
cLang.name
FROM CONSL_INV c
LEFT JOIN customers cu ON c.cust_code = cu.CUST_CODE,
customers_lang cLang
WHERE
upper(cLang.NAME) LIKE ?
AND upper(cLang.LANGUAGE_CD) = ?
AND c.CUST_CODE = cLang.CUST_CODE
This Query Executes Correctly In Oracle Sql Developer but it does not execute in hibernate.
It gives the following error:
"ORA-00918: column ambiguously defined"
I know it's because of multiple columns having same name, but I have done it correctly but still don't know why it's not executing in hibernate.