Re: Left join syntax error - Mailing list pgsql-general

From Rich Shepard
Subject Re: Left join syntax error
Date
Msg-id 3216489-758a-faef-b21b-84c9679f53c@appl-ecosys.com
Whole thread Raw
In response to Re: Left join syntax error  (Shammat <shammat@gmx.net>)
Responses Re: Left join syntax error
Re: Left join syntax error
List pgsql-general
On Sat, 18 May 2024, Shammat wrote:

> Don't put the second table in the FROM part
>
> SELECT p.lname, p.fname, p.job_title, p.company_nbr, p.email, c.company_name
> FROM people as p
>  LEFT JOIN companies as c ON c.company_nbr = p.company_nbr

Shammat,

I tried this with this result:

ERROR:  missing FROM-clause entry for table "c"
LINE 3: LEFT JOIN companies ON c.company_nbr = p.company_nbr;

Thanks for the suggestion.

Regards,

Rich



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Valid until
Next
From: Adrian Klaver
Date:
Subject: Re: Valid until