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



No - you can't put order by in a view - pure sql does not allow that - indexes and views are different and separate creatures - unlike LFs, which CAN combine the 2 concepts

Some other RDBMS do allow order by in views - MySQL comes to mind.

-------------- Original message --------------
From: Doug Palme <DPalme@xxxxxxxxxxx>

I have seen some refer to indexes as similar to a keyed logical file,
which certainly makes sense to me....however can you not also do the same
thing with a view? IE: Use Order By in a view statement?

From: Doug Palme
To: Midrange Systems Technical Discussion
Date: 09/23/2008 09:58 AM
Subject: Re: AW: DDL Discussion continued

----------------------------------------------------------------------

Thanks.....

From: "Birgitta Hauser"

To: "'Midrange Systems Technical Discussion'"



Date: 09/22/2008 11:57 PM

Subject: AW: DDL Discussion continued


----------------------------------------------------------------------

Hi,

you may also read the following whitepaper which discusses how to
determine
and create the best access paths (either SQL indexes or DDS described
keyed
logical files).
Indexing and statistics strategies for DB2 for i5/OS

http://www-03.ibm.com/servers/enable/site/education/abstracts/indxng_abs.htm
l

Mit freundlichen Gru:ssen / 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 loosing them? Not training
them
and keeping them!"

-----Urspru:ngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von
vhamberg@xxxxxxxxxxx
Gesendet: Tuesday, 23. September 2008 03:59
An: Midrange Systems Technical Discussion
Betreff: Re: DDL Discussion continued

Somehow got a quick hit of my palm on the touchpad on the last message -
but
my point was made already.

You should read the manual that talks about optimization and access
plans
and all - it'll tell you why you need indexes for certain kinds of
access
-
the better ones will not even be possible without an index under it. SQL
may
create its own index at time, if it thinks that will go faster than some
other method.

The link to the manual called Database Performance and Query
Optimization,
at V5R4, is


http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzajq/rzajq.pdf

There'd be a similar manual at the other release levels.

HTH
Vern

-------------- Original message --------------
From: Doug Palme

We had our meeting this past week on DDL and I would like to get some
feedback from all of you....I know that some of the uses for a view is
far

different than an index but if one is depending on the SQL engine to
determine the most efficient access path for the data, why even create
indexes? Is there any real advantage to creating them?
This transmission may contain information that is privileged,
confidential

and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure,
copying,
distribution, or use of the information contained herein (including
any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission in error, please immediately contact the sender and
destroy
the material in its entirety, whether in electronic or hard copy
format.
Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

This transmission may contain information that is privileged,
confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure,
copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission in error, please immediately contact the sender and destroy
the material in its entirety, whether in electronic or hard copy format.
Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission in error, please immediately contact the sender and destroy
the material in its entirety, whether in electronic or hard copy format.
Thank you.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.