Re(2): optimize sql

From: pgsql-sql(at)fc(dot)emc(dot)com(dot)ph (pgsql-sql)
To: pgsql-sql(at)postgresql(dot)org, reedstrm(at)rice(dot)edu
Subject: Re(2): optimize sql
Date: 2000-07-27 02:40:04
Message-ID: fc.000f56720059cb84000f56720059cb84.59cc50@fc.emc.com.ph
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

reedstrm(at)rice(dot)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

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Swan 2000-07-27 07:06:51 Classes, Inheritance, and Children
Previous Message Ross J. Reedstrom 2000-07-26 15:51:07 Re: optimize sql