Hi!

Some of our developers are having concerns about using views in the
application. So they approached me and wanted to clarify some of their
issues.

When I issues a "select * from viewname", Oracle executes the underlying
select statement of the view. This underlying statement should be optimized
(using availabale indexes on tables etc.)

If I issue a "select * from viewname where condition < 3" or the like, will
the indexes still be used. Or how is this statement executed? Does Oracle
first run the underlying select statement and then apply the "where
condition < 3" to the returned result set? Or is the statement being
rewritten internally?

The Oracle documentation is not very clear on this. Any ideas would be
appreciated.

This is 8.1.6 on Win2k.

Thanks,
Helmut

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Helmut Daiminger
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to