Really? It shouldn't.... When I prompt CREATE VIEW, all I see is
<paste>
Type subselect information.

FROM files . . . . . . .

SELECT fields . . . . .

WHERE conditions . . . .

GROUP BY fields . . . .

HAVING conditions . . .




Type choice, press Enter.

DISTINCT records in result file
<end paste>

Do you see something other than this?

Eric DeLong


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Doug Palme
Sent: Tuesday, September 23, 2008 1:26 PM
To: Midrange Systems Technical Discussion
Subject: Re: AW: DDL Discussion continued


Ok, if that is the case, why when I do a STRSQL and type in CREATE VIEW
it shows the ORDER BY clause?

From: vhamberg@xxxxxxxxxxx
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 09/23/2008 11:14 AM
Subject: Re: AW: DDL Discussion continued

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

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

Replies:

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

This mailing list archive is Copyright 1997-2019 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].