From: pgsql-sql@fc.emc.com.ph
To: pgsql-sql@postgresql.org
To: reedstrm@rice.edu
Subject: Re(2): optimize sql
Date: Thu, 27 Jul 2000 10:40:04 +0800
Message-ID: <fc.000f56720059cb84000f56720059cb84.59cc50@fc.emc.com.ph> (raw)
reedstrm@rice.edu writes:
>How does the output of the above differ from:
>
>SELECT name FROM office, office_application
>WHERE code = office_code
>AND active != 't';
>
>Without knowing the table structures (which tables to active, code,
>and office_code belong to?) it's hard to suggest much else.
>
>Ross
The name and code fields belong to office table. While
office_code and active fields belong to office_application table.
The name field have duplicates and among the duplicates,
only one active field is TRUE. I just wanted to get name field
that has no TRUE active field. Any other idea? Thanks.
sherwin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pgsql-sql@fc.emc.com.ph, reedstrm@rice.edu
Subject: Re: optimize sql
In-Reply-To: <fc.000f56720059cb84000f56720059cb84.59cc50@fc.emc.com.ph>
References: <fc.000f56720059cb84000f56720059cb84.59cc50@fc.emc.com.ph>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox