public inbox for [email protected]  
help / color / mirror / Atom feed
Re: Left join syntax error
3+ messages / 2 participants
[nested] [flat]

* Re: Left join syntax error
@ 2024-05-18 15:04 Rich Shepard <[email protected]>
  2024-05-18 15:12 ` Re: Left join syntax error Adrian Klaver <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Rich Shepard @ 2024-05-18 15:04 UTC (permalink / raw)
  To: [email protected]

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

Thanks,

Rich






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Left join syntax error
  2024-05-18 15:04 Re: Left join syntax error Rich Shepard <[email protected]>
@ 2024-05-18 15:12 ` Adrian Klaver <[email protected]>
  2024-05-18 15:41   ` Re: Left join syntax error Rich Shepard <[email protected]>
  0 siblings, 1 reply; 3+ messages in thread

From: Adrian Klaver @ 2024-05-18 15:12 UTC (permalink / raw)
  To: Rich Shepard <[email protected]>; [email protected]

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
[email protected]







^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Left join syntax error
  2024-05-18 15:04 Re: Left join syntax error Rich Shepard <[email protected]>
  2024-05-18 15:12 ` Re: Left join syntax error Adrian Klaver <[email protected]>
@ 2024-05-18 15:41   ` Rich Shepard <[email protected]>
  0 siblings, 0 replies; 3+ messages in thread

From: Rich Shepard @ 2024-05-18 15:41 UTC (permalink / raw)
  To: [email protected]

On Sat, 18 May 2024, Adrian Klaver wrote:

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

Adrian,

I saw that but didn't know how to specify the alias only one time.

Thanks,

Rich






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2024-05-18 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-05-18 15:04 Re: Left join syntax error Rich Shepard <[email protected]>
2024-05-18 15:12 ` Adrian Klaver <[email protected]>
2024-05-18 15:41   ` Rich Shepard <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox