Alternate indexed views
4 answers
I am assuming that you want to index the view using external or self-attachment ( or one of the other constraints ).
Use the regular view or the built-in table function if you want to use it in the FROM clause.
Keep this in mind, however: in a query with indexed views, the optimizer can disable (expand) the view and use the underlying tables if it sees fit. An alternative query will also be added using non-indexed views or built-in table functions.
See my answer here: The Plan Optimization Optimizer works well with bound / filtered table functions AND Tony Rogerson
Otherwise, you can add additional information.
0
a source to share