pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Web Manager <web@inter-resa.com>
To: pgsql-sql@postgresql.org
Subject: two table comparison: find a mismatch?
Date: Fri, 28 Jul 2000 16:54:58 -0400
Message-ID: <3981F322.1CFE9A47@inter-resa.com> (raw)

Hello,

here is to table:
                               Table "city"
   Attribute    |    Type     |                  Modifier
----------------+-------------+---------------------------------------------
 city_id        | smallint    | not null default
nextval('seq_city'::text)
 region_id      | smallint    |
 region_tour_id | smallint    |
 country_id     | smallint    |
 name_fr        | varchar(40) |
 name           | varchar(40) |
 url_id         | smallint    |


                             Table "region"
 Attribute |    Type     |                   Modifier
-----------+-------------+----------------------------------------------
 region_id | smallint    | not null default nextval('seq_region'::text)
 country_id| smallint    |
 name_fr   | varchar(40) |
 name      | varchar(40) |
 address   | boolean     |
 url_id    | smallint    | 


I whant to fins a "hole" in the linkage... a region number in the city
table is not in the region table any more.

How can I do that?

Where is the city.region_id <> region.region_id

Thanks!
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marc Andre Paquin



view thread (2+ messages)  latest in thread

Message-ID: <3981F322.1CFE9A47@inter-resa.com>
Permalink:  ../3981F322.1CFE9A47@inter-resa.com/
Also on:    postgresql.org/message-id/3981F322.1CFE9A47@inter-resa.com

 · 

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: web@inter-resa.com
  Subject: Re: two table comparison: find a mismatch?
  In-Reply-To: <3981F322.1CFE9A47@inter-resa.com>
  References: <3981F322.1CFE9A47@inter-resa.com>

* 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