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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Is this SQL Possible??

Re: Is this SQL Possible??

From: Juan Carlos Reyes Pacheco <jreyes_at_dazasoftware.com>
Date: Mon, 20 Dec 2004 15:53:47 -0400
Message-Id: <41C72DCB.000001.00520@JREYES>


I suppose is a mistake you are saying gd is in both querys FROM gd WHERE "Full Name" IN
&
(SELECT DISTINCT "Full Name" FROM gd

If is true both tables gd are the same

You could
do the following
( if you get all data at the same time)

SELECT *
FROM ss,
(SELECT "Support Staff ID", "Group ID"

FROM gd )
WHERE ss.code = "Support Staff ID"  

If you want to get faster the first recods take of the subquery

SELECT gd."Support Staff ID", gd."Group ID" FROM ss, gd
WHERE ss.code = gd."Support Staff ID"

Juan Carlos Reyes Pacheco
OCP

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Dec 20 2004 - 13:50:31 CST

Original text of this message

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