HOW 'VIEW' WORKS

From: Alex Yau <achyau_at_msn.com>
Date: 1996/09/21
Message-ID: <R.00001a1b+00008795_at_msn.com>#1/1


Reposting article removed by rogue canceller.

I have a question about exactly how VIEW works in ORACLE.

I am working a bunch of reports which use a VIEW which is a UNION of 2 hugh tables(150000 and 100000 rows respectively.) The report SQL statement will use this view to join with other tables to select the columns required.

I would like to know how the SQL statement will be processed internally? Will the VIEW be created first(i.e. full table scan, sort/merge ...etc) THEN join with other tables OR the create statement of the VIEW will be combined with the report SQL statement first then process in one go.

Thanks,

Alex Received on Sat Sep 21 1996 - 00:00:00 CEST

Original text of this message