Create Index and Create View are two separate things. Create your view first and the query optimizer will determine if it can use any existing indexes or LFs to return the data efficiently and in the order you specify on the order by clause.

If it doesn't then you may have to create an index that it recommends.

If you haven't gotten into it, google for SQL Plan Cache iSeries Navigator.


On 12/26/2013 5:49 PM, Hoteltravelfundotcom wrote:
Hi Does one create an index via VIEW? I am not seeing how to do this.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].