Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> How to write a query for this?

How to write a query for this?

From: Gad Krosner <krosner_at_excite.com>
Date: Thu, 14 Dec 2000 22:50:25 GMT
Message-ID: <91birf$j85$1@nnrp1.deja.com>

Hi There!

I have a table MYTABLE with columns EMPID and LOCATION (and other columns).
LOCATION may be "HQ" or "FO" and one EMPID may have both HQ and FO.

I want to retrieve data but not more than one row per EMPID. If an EMPID has both HQ and FO, I want to retrieve only the row with FO.

How do I write that query?

Thanks.

Sent via Deja.com
http://www.deja.com/ Received on Thu Dec 14 2000 - 16:50:25 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US