× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

a view never can have an access path (aka Index).

With release 6.1 the CREATE INDEX statement gets enhanced:
1. additional (not existing columns in the base table) can be created and
used as keys
2. where condition can be added
Where condition are pretty much comparable with select omit clauses.

Those derived indexes can be used with native I/O, but cannot be specified
in SQL statements.
It's the query optimizer which decides to use an access path (index or keyed
logical file) and which one or if a table scan may be better.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Jeff Crosby
Gesendet: Monday, 05. January 2009 16:41
An: 'Midrange Systems Technical Discussion'
Betreff: Create index over view

Rob wrote:
"There are a few things that DDS can do that SQL cannot.
- Define 5250 (i version of 3270) based screens.
- Define printer files

Some of the others were conquered in V6R1, like the ability to create an
index on a view. Indexes on views are pretty much ignored by the query
engine and the only reason for it was to allow sql to replace DDS for
creation of logical files to be read by HLL's like RPG's chain operation
code instead of imbedded sql."



Are you sure about that? I tried it just now with no success. And the V6R1
reference still says "The CREATE VIEW statement creates a view on one or
more tables or views at the current server."



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-2024 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.