I have a large query in a PostgreSQL database. The Query is something like this:
SELECT * FROM table1, table2, ... WHERE table1.id = table2.id...
If you got here because you are trying to use a function like to_date and getting the "defined more than once" error, note that you need to use a column alias for functions, e.g.:
to_date
to_date(o.publication_date, 'DD/MM/YYYY') AS publication_date