Darren,

An SQL VIEW does NOT include any INDEXes.(due to ANSI ISO SQL Standards compliance issues.)

You can create an SQL VIEW of a "join" but you must create any needed underlying INDEXes yourself.  (See the index advisor ...)

Then, when you use the VIEW, the Db2 Optimizer wil decide what indexes, if any, to use.

Hope that helps,

Mark S. Waterbury

On Wednesday, October 25, 2023 at 12:59:52 PM EDT, Darren Strong <darren@xxxxxxxxx> wrote:

You can replicate the same thing in SQL with a View.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2025 by midrange.com 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.