Re: SQL Joins

From: "steve boyle" <boylesa(at)dial(dot)pipex(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: SQL Joins
Date: 2002-01-09 11:31:10
Message-ID: a1hd7b$26fk$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Trace, is the second SQL in Postgres?

"Trace" <tjennette(at)thomasnelson(dot)com> wrote in message
news:56893385(dot)0201081316(dot)25272d8c(at)posting(dot)google(dot)com(dot)(dot)(dot)
> Can someone please tell me what this previously-written SQL is doing?
> I don't understand how it is structured. I'm familiar with JOINs such
> as this (1 joined table per 1 ON phrase):
>
> FROM t1
> LEFT OUTER JOIN t2 ON t1.id = t2.id
> LEFT OUTER JOIN t3 ON t2.name = t3.name
>
> But the following SQL is puzzling me. To which JOINs are the ON
> phrases connected?
>
> Any help would be appreciated! (Feel free to re-format the physical
> structure of the lines....as this is the way it came to me!)
>
> Trace'
>
>
> FROM eStoreManager.estore_dept_prod LEFT OUTER JOIN
> eStoreManager.estore_product ON
> eStoreManager.estore_dept_prod.sku =
> eStoreManager.estore_product.sku
> RIGHT OUTER JOIN
> eStoreManager.tblCProductClass
> LEFT OUTER JOIN eStoreManager.tblCProductClassProduct ON
> eStoreManager.tblCProductClass.ProductClassID =
> eStoreManager.tblCProductClassProduct.ProductClassID
> ON
> eStoreManager.estore_product.sku =
> eStoreManager.tblCProductClassProduct.sku
> FULL OUTER JOIN
> eStoreManager.tblCProductClassCreator INNER JOIN
> eStoreManager.tblCCreator
> ON eStoreManager.tblCProductClassCreator.CreatorID =
> eStoreManager.tblCCreator.CreatorID
> ON eStoreManager.tblCProductClass.ProductClassID =
> eStoreManager.tblCProductClassCreator.ProductClassID

In response to

  • SQL Joins at 2002-01-08 21:16:28 from Trace

Browse pgsql-sql by date

  From Date Subject
Next Message Torbj=?ISO-8859-1?B?9g==?=rn Andersson 2002-01-09 14:19:55 Nested loops and $13
Previous Message Maarten.Boekhold 2002-01-09 09:47:03 Re: [GENERAL] Need help