pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gerhard Dieringer <DieringG@eba-haus.de>
To: indraneel@www.cdfd.org.in
Cc: pgsql-sql@postgresql.org
Subject: Re: Antw: many-many mapping between unique tables
Date: Mon, 16 Oct 2000 10:09:50 +0200
Message-ID: <s9ead40a.069@kopo001> (raw)

>>> Indraneel Majumdar <indraneel@www.cdfd.org.in> 16.10.2000  22.13 Uhr >>>
> Yeah you understand the problem perfectly. The third table will definitely
> contain unique entries if you take both x and y simultaneously. I wanted
> some way of mapping where I would not need to repeat individual values of
> x and y. I am not from a maths background and have absolutely no idea of
> database design.
>
> Is it possible to map the columns without repeating values?
> 
> \Indraneel

I don't know what type of data your columns x and y contain. If they are,
for example, of type text and contain long strings, then it would be better
to add an integer id column in each tables T1 and T2: x_id and y_id and
use these ids in the table T12.

Then you only have to repeat the (short) numeric vales in T12. But I think there 
is no way to totaly avoid any repetition.

--------------
Gerhard




view thread (8+ messages)  latest in thread

Message-ID: <s9ead40a.069@kopo001>
Permalink:  ../s9ead40a.069@kopo001/
Also on:    postgresql.org/message-id/s9ead40a.069@kopo001

 · 

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: DieringG@eba-haus.de, indraneel@www.cdfd.org.in
  Subject: Re: many-many mapping between unique tables
  In-Reply-To: <s9ead40a.069@kopo001>
  References: <s9ead40a.069@kopo001>

* 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