Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6RKT2f47172 for ; Fri, 27 Jul 2001 16:29:03 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15QEEG-000HoS-0V; Fri, 27 Jul 2001 21:29:00 +0100 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by localhost (8.12.0.Beta16/8.12.0.Beta16/Debian 8.12.0.Beta16) with ESMTP id f6RKSvGn003352; Fri, 27 Jul 2001 21:28:57 +0100 Message-Id: <200107272028.f6RKSvGn003352@linda.lfix.co.uk> X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-general@postgresql.org Subject: Re: Re: D308-E9AF-4C11 : CONFIRM from pgsql-sql (subscribe) In-reply-to: Message from Gonzo Rock of Fri, 27 Jul 2001 11:02:15 PDT. <3.0.5.32.20010727110215.00c9bac0@postoffice.pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Jul 2001 21:28:57 +0100 From: "Oliver Elphick" X-Archive-Number: 200107/981 X-Sequence-Number: 13101 Gonzo Rock wrote: >Is one recommended over the other??? Sure appreciate the commentary before I > get in too deep with all these tables. The second sounds OK, but only if the chosen field is truly a candidate key. "Customer" does not sound like one - suppose you have two 'John Smith's? This is why most real-world applications use unique numbers or codes. Of course you could (probably) differentiate the 'John Smith's by address, but then the address has to be typed in as well as the name. A code is much easier. It all depends on the nature of the data. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "But the wisdom that is from above is first pure, then peaceable, gentle, and easy to be intreated, full of mercy and good fruits, without partiality, and without hypocrisy." James 3:17