Skip to content
Advertisement

Duplicate column name – inner join

This is my query :

but I got this error message:

Duplicate column name ‘kol_code’

Advertisement

Answer

FinancialMoein.* in select clause already includes the column kol_code since it is derived using table Tb_Financial_Coddings which has the column kol_code. Then again you are selecting it with the same name, hence there is issue. You have to keep the different names for all the columns. You may try below query to ignore the issue –

Rather you may just remove the column FinancialMoein.kol_code as kol_code, from the outer select to ignore the error.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement