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



The ONLY time you would not use a pre-defined VIEW or INDEX is when it
is a
truly ad hoc query, which would correspond to the OPNQRYF statement
above.

What about when you're selecting on one set of fields and ordering on
another. Let's say you wanted to display two views of order-details, one
by line-number and on by item-number. In both cases we're talking about
lines for a single order, and our average order has 10 lines.

In ISAM world you would need an index by Order, OrderLineNumber and
another by Order, OrderLineItem, where in SQL you would just need the
index by Order and then let it sort. You're sorting few enough rows that
the sort makes sense. Not to mention, how do you do a view sorted by
item-description? An array?

Point is, in ISAM-land you _must_ have an index, in SQL-land you
_probably should_ have an index, but sometimes you don't need one.

-Walden


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.