Quote:
|
Originally Posted by svrider
Is it possible to index a view?
|
Yes, it is. That is to say, "it depends":
With DB2 9 for z/OS you can define an index on an expression, hence a view having a column which is not just a base table column cannot be indexed in earlier versions of DB2 but can be in DB2 9.
(So it's not the view itself which gets indexed, but the result is the same when the view is going to be queried.)