3 SELECTs rolled into 1 ? - Mailing list pgsql-sql

From Tarlika Elisabeth Schmitz
Subject 3 SELECTs rolled into 1 ?
Date
Msg-id 20080604084129.0fec48a1@dick.coachhouse
Whole thread Raw
Responses Re: 3 SELECTs rolled into 1 ?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
I have 3 similar SELECTs. I am wondering whether they could be rolled
into one?


SELECTitem.id department.id || section.id || category.id as x
FROM itemLEFT JOIN product ON ...LEFT JOIN department ON ...LEFT JOIN section ON ...LEFT JOIN category ON ...

SELECTitem.id department.id || section.id as x
FROM itemLEFT JOIN product ON ...LEFT JOIN department ON ...LEFT JOIN section ON ...

SELECTitem.id department.id as x
FROM itemLEFT JOIN product ON ...LEFT JOIN department ON ...



--


Best Regards,

Tarlika Elisabeth Schmitz


A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad? 


pgsql-sql by date:

Previous
From: "samantha mahindrakar"
Date:
Subject: Re: Update problem
Next
From: "A. Kretschmer"
Date:
Subject: Re: 3 SELECTs rolled into 1 ?