Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp991-00Gybn-N1 for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 16:27:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sp990-006kQP-L9 for pgsql-general@arkaria.postgresql.org; Fri, 13 Sep 2024 16:27:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp990-006kPI-9m for pgsql-general@lists.postgresql.org; Fri, 13 Sep 2024 16:27:38 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sp98w-00112H-Ot for pgsql-general@postgresql.org; Fri, 13 Sep 2024 16:27:37 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id 1A17D2A14D6 for ; Fri, 13 Sep 2024 09:27:33 -0700 (PDT) Date: Fri, 13 Sep 2024 09:27:33 -0700 (PDT) From: Rich Shepard To: pgsql-general@postgresql.org Subject: Re: DDL issue In-Reply-To: Message-ID: References: <91bda8-3bdb-d93-6c17-41a03a3de27a@appl-ecosys.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 12 Sep 2024, Adrian Klaver wrote: > Quick and dirty: > > people_table > person_id PK > name_last > name_first > email_address > ph_number > ... > > location_table > loc_id PK > person_id_fk FK <--> people_table(person_id) > loc_name > loc_st_addr > loc_st_city > loc_st_st_prov > ... > > contact_table > contact_id PK > loc_id_fk FK <--> location_table(loc_id) > contact_ph_number > contact_email --Can be null > > It can get more involved then this, depends on how flexible you want to get. Adrian, This comes close; I need to think about this. Thanks, Rich