The following two select statements look similar, except that in the second one I removed the column "abc" from the result set. I can't understand why does this error happens, how do I solve it and how do I get to return all three columns without error.SELECT abc, def, ghi -- ERROR: Ambiguous column name 'abc'FROM Table1, Table2, Table3WHERE Table1.jkl = Table2.jklAND Table1.abc= Table3.abcSELECT def, ghi -- runs!FROM Table1, Table2, Table3WHERE Table1.jkl = Table2.jklAND Table1.abc= Table3.abc
Thanks in advance for your precious time.