Received: from www.cdfd.org.in ([202.54.67.145]) by hub.org (8.10.1/8.11.0) with ESMTP id e9G9HIW62273 for ; Mon, 16 Oct 2000 05:17:18 -0400 (EDT) (envelope-from indraneel@www.cdfd.org.in) Received: from localhost (indraneel@localhost) by www.cdfd.org.in (980427.SGI.8.8.8/970903.SGI.AUTOCF) via SMTP id OAA33594 for ; Mon, 16 Oct 2000 14:54:47 -0700 (PDT) Date: Mon, 16 Oct 2000 14:54:47 -0700 (PDT) From: Indraneel Majumdar To: pgsql-sql@postgresql.org Subject: Re: Antw: many-many mapping between unique tables In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by hub.org id e9G9HPW62345 X-Archive-Number: 200010/146 X-Sequence-Number: 1808 Sorry for splitting mails. Is there some way of using the oid of each row to do the mapping instead of creating two more columns of integers? The third table can then be like this: create table T3( T1 oid, T2 oid ); also how can I find out the oid of a particular row? and how can I use this oid in a select statement? Thanks, Indraneel On Mon, 16 Oct 2000, Gerhard Dieringer wrote: > 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 > /************************************************************************. # Indraneel Majumdar ¡ E-mail: indraneel@123india.com # # Bioinformatics Unit (EMBNET node), ¡ URL: http://scorpius.iwarp.com # # Centre for DNA Fingerprinting and Diagnostics, # # Hyderabad, India - 500076 # `************************************************************************/