| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Indexes on Views
This technique (indexing a view) is useful for almost any
computed column.
One specific example would be to support case insensitive
searching, e.g. of names. The view could have a column
e.g. upper(original_last_name) as last_name,
with an index defined on it. Then a typical query
would be: select original_last_name from people where
last_name like 'SMITH%'
The point of using an index on the view column is to
save space; this avoids storing the uppercase version of the name
column both in the table (where it is not needed) and in the index.
Hopefully helpfully yours,
Steve
-- Steven Tolkin steve.tolkin_at_fmr.com 617-563-0516 Fidelity Investments 82 Devonshire St. R24D Boston MA 02109 There is nothing so practical as a good theory. Comments are by me, not Fidelity Investments, its subsidiaries or affiliates.Received on Mon Apr 24 2000 - 00:00:00 CDT
![]() |
![]() |