pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: KuroiNeko <evpopkov@carrier.kiev.ua>
To: pgsql-sql@postgresql.org
Subject: Re: Antw: many-many mapping between unique tables
Date: Mon, 16 Oct 2000 15:14:27 +0000
Message-ID: <39EB1B53.nail1L21P304T@ed.ed> (raw)
References: <s9eac329.061@kopo001>

> > I am facing a problem in mapping between two tables containing unique
> > entries
> >
> Then you need a  third table T12 with columns x and  y, that contains one
> row for each
> mapping of a x(i) with a y(j).

 That's it.  Normalize it. Relation T12  may also require the  third field,
`direction', to specify whether  this is T1 -> T2 or T2  -> T1. In general,
it'd be much better to re-design data layout.


--

 Well I tried to be meek
  And I have tried to be mild
 But I spat like a woman
  And I sulked like a child
 I have lived behind the walls
  That have made me alone
 Striven for peace
  Which I never have known

 Dire Straits, Brothers In Arms, The Man's Too Strong (Knopfler)




view thread (8+ messages)  latest in thread

Message-ID: <39EB1B53.nail1L21P304T@ed.ed>
Permalink:  ../39EB1B53.nail1L21P304T@ed.ed/
Also on:    postgresql.org/message-id/39EB1B53.nail1L21P304T@ed.ed

 · 

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: evpopkov@carrier.kiev.ua
  Subject: Re: many-many mapping between unique tables
  In-Reply-To: <39EB1B53.nail1L21P304T@ed.ed>
  References: <s9eac329.061@kopo001> <39EB1B53.nail1L21P304T@ed.ed>

* 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