pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Hagerty <matthew@venux.net>
To: pgsql-sql@postgreSQL.org
Subject: Finding missing records...
Date: Fri, 25 Feb 2000 10:56:18 -0500
Message-ID: <4.2.2.20000225105014.00ba6bf0@mail.venux.net> (raw)

Greetings,

I have two tables that maintain a 1:1 relationship via an int based primary 
key.  A record in the primary table should never exist without an 
associated record in the secondary table, however somehow this has 
happened.  Can someone demonstrate a query that would show all records in 
the primary table that do not have associated records in the secondary table?

Thanks,
Matthew




view thread (3+ messages)  latest in thread

Message-ID: <4.2.2.20000225105014.00ba6bf0@mail.venux.net>
Permalink:  ../4.2.2.20000225105014.00ba6bf0@mail.venux.net/
Also on:    postgresql.org/message-id/4.2.2.20000225105014.00ba6bf0@mail.venux.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: matthew@venux.net
  Subject: Re: Finding missing records...
  In-Reply-To: <4.2.2.20000225105014.00ba6bf0@mail.venux.net>
  References: <4.2.2.20000225105014.00ba6bf0@mail.venux.net>

* 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