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



"sounds like you are not very familiar with views"

Heh. Yes, I was thinking about reasons to create a prepared statement, and conflated that with reasons for not using a VIEW.  Of course the ORDER BY doesn't impact the VIEW.  My mistake.

But thank you for pointing that out so politely.  That's what makes this list so much fun! ;)

In the meantime, as I mentioned to Birgitta I still won't create a VIEW if it's only used in one program, and in that case using externally described fields to build the data structure is perfectly fine.

<Joe>
For example, if I need to select the library at run time, or the ORDER BY criteria can be changed at run time.
</Joe>

sounds like you are not very familar with views. DB2 on AS/400 (and all following systems) doesn't allow an order by in the top select and even drops tricky order by clauses (as allowed in other flavours of DB2).
In this special case I would indeed recommend not to use views in Germany we are saying: "Schuster bleib bei Deinen Leisten"

D*B



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.