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 -> Re: Creating query based on results of a query...

Re: Creating query based on results of a query...

From: Sybrand Bakker <sybrandb_at_hccnet.nl>
Date: Wed, 30 Jun 2004 23:17:51 +0200
Message-ID: <0cb6e0tg2f3g65a1ut0inpcdt877jld42s@4ax.com>


On Wed, 30 Jun 2004 17:08:26 +0200, "CloudsŪ" <DOCloudsNOT_at_hardwareSPAM-spot.com> wrote:

>I guess this is not possible with plain SQL....

It is definitely possible with plain sql. Either set up a static view
create view abc as <your original select>

select * from abc where

or (usually performs better) set up an inline view

select * from
(<your original select>)
where etc.

Don't resort to 'temp' tables, in Oracle you only rarely need them.

--
Sybrand Bakker, Senior Oracle DBA
Received on Wed Jun 30 2004 - 16:17:51 CDT

Original text of this message

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