Re: Left join syntax error

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Left join syntax error
Date: 2024-05-18 15:12:00
Message-ID: 9ef5ff57-34d2-43f5-99ca-6390d899a3f7@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/18/24 08:04, Rich Shepard wrote:
> On Sat, 18 May 2024, Adrian Klaver wrote:
>
>> ... LEFT JOIN companies as c ON c.company_nbr = p.company_nbr;
>
> Adrian,
>
> Tried that:
> bustrac-# LEFT JOIN companies as c ON c.company_nbr = p.company_nbr;
> ERROR:  table name "c" specified more than once

Show the complete query.

Take the error message as correct, you are specifying 'companies as c'
more then once.

>
> Thanks,
>
> Rich
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-05-18 15:12:35 Re: Left join syntax error
Previous Message Ray O'Donnell 2024-05-18 15:04:44 Re: Left join syntax error