Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A47DB9FB668 for ; Thu, 25 Jan 2007 20:09:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 64370-09 for ; Thu, 25 Jan 2007 20:09:51 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 4AAAE9FB665 for ; Thu, 25 Jan 2007 20:09:55 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id k3so575331ugf for ; Thu, 25 Jan 2007 16:09:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=N7pUgGn0REw/S+yxrg6nlUZwBSFTWTRUQrXx93eOGOqsScK0k9bX32ni3BNnOzzSABLgmkG6CA9tvsh69xLcoBDjxa7mXYsLLBBEuU3f3A6iV8lmjERo4p7FqIOOHTxxKJRMzTuP4YLfQuJpbCxVDao9kIuMEKYMIHdzKngupkA= Received: by 10.78.204.1 with SMTP id b1mr1953750hug.1169770193242; Thu, 25 Jan 2007 16:09:53 -0800 (PST) Received: by 10.78.179.5 with HTTP; Thu, 25 Jan 2007 16:09:53 -0800 (PST) Message-ID: <34785f060701251609n29723e2fi6815f93f3bc6da51@mail.gmail.com> Date: Thu, 25 Jan 2007 19:09:53 -0500 From: "Rob V" To: pgsql-sql@postgresql.org Subject: Re: LEFT Join Question In-Reply-To: <34785f060701251551u23538daej2b45f0c522bf1b7a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24599_33139164.1169770193216" References: <34785f060701251551u23538daej2b45f0c522bf1b7a@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/127 X-Sequence-Number: 27279 ------=_Part_24599_33139164.1169770193216 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Just 1 followup to this : they MAY or MAYNOT have records in the following tables : contact_address,contact_phone There may also be multiple records in that table w/ the same account_id - but the domain_type_id will be different. so the contact_phone could have 2 records : account_id 1, domain PRIMARY phone 555-1212 account_id 1, domain SECONDARY phone -123-4556 ------=_Part_24599_33139164.1169770193216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Just 1 followup to this :
they MAY or MAYNOT have records in the following tables :
contact_address,contact_phone

There may also be multiple records in that table w/ the same account_id - but the domain_type_id will be different.
so the contact_phone could have 2 records :
account_id 1, domain PRIMARY phone 555-1212
account_id 1, domain SECONDARY phone -123-4556
------=_Part_24599_33139164.1169770193216--