Skip to content
Advertisement

Error: SQL Substring with the “ON” Part of the JOIN

I am using PostgreSQL and must join tables using substring. As I demonstrated below, xyz.MODEL and first three characters of “columnname” from abc Table should match. However, the query below does not work.

It returns the error:

Can anyone help me to correct this query?

Thanks for your help already.

Advertisement

Answer

The table alias must precede the column name, not the function:

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