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 -> Implicit Passing of "Parameters" to Views

Implicit Passing of "Parameters" to Views

From: Tim Theis <ttheis_at_dytn.veridian.com>
Date: Mon, 30 Aug 1999 15:00:01 -0400
Message-ID: <7qekhn$2mv$1@athena.netset.com>


I have a view set up like...

Create View View1 as
Select A.field1,A.field2,sum(A.field3)
From

    Table1 A

I now want to issue a select statement on this view similar to the following...

Select * from View1 where field2 = 'PARAMETER'

and have the underlying view1 know to restrict the query to only those records where field2='Parameter'. All of my experimentation seems to prove that Oracle creates a temporary table of all possible values first, and then restricts the rows in the temporary table to those meeting the condition. Since this is a very large table, it is very inefficient.

Any help would be appreciated. I am using Oracle 7.3.

Tim Theis
ttheis_at_dytn.veridian.com Received on Mon Aug 30 1999 - 14:00:01 CDT

Original text of this message

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