pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antti Linno <alligator@all.ee>
To: pgsql-sql@postgresql.org
Subject: LEFT JOIN
Date: Tue, 4 Jul 2000 15:15:14 +0300 (EEST)
Message-ID: <Pine.LNX.4.04.10007041506580.27952-100000@all.ee> (raw)

Greetings.
 I have a problem. I have 2 tables. E.g. work and workers. I want to
select records, that 1st table has, and the second hasn't(both have id
attribute). I mean I can't do it with is NULL, because those records don't
exist. I was shown, how it is done with mysql

select first.id,second.id_first 
from first left join second on
id=id_first where id_first is NULL;

but when I tried it in psql, it said, not implemented.

Antti





view thread (13+ messages)  latest in thread

Message-ID: <Pine.LNX.4.04.10007041506580.27952-100000@all.ee>
Permalink:  ../Pine.LNX.4.04.10007041506580.27952-100000@all.ee/
Also on:    postgresql.org/message-id/Pine.LNX.4.04.10007041506580.27952-100000@all.ee

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: alligator@all.ee
  Subject: Re: LEFT JOIN
  In-Reply-To: <Pine.LNX.4.04.10007041506580.27952-100000@all.ee>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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