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



Dennis,

I wasn't trying to provide the entire solution...

I expected my statement to be placed into a UDF that could then be
used as Jon needed.

Charles

On Tue, Jul 12, 2011 at 11:55 PM, Dennis Lovelady <iseries@xxxxxxxxxxxx> wrote:

Still, this is very nice, and significantly more elegant than any of
the other pure-SQL attempts in this thread.

True.  Too bad it won't work, unless it happens that order date is today.
OTOH, I believe there are also limits against using WITH and UPDATE
together, so it's a double whammy.  Original request: UPDATE the Orders.

Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"... Man had always assumed that he was more intelligent than dolphins
because he had achieved so much... the wheel, New York, wars, and so on,
whilst all the dolphins had ever donw was much about in the water having a
good time.  But conversely the dolphins believed themselves to be more
intelligent than man for precisely the same reasons."
       -- The Hitchhiker's Guide to the Galaxy


On Tue, Jul 12, 2011 at 10:09 PM, Charles Wilt <charles.wilt@xxxxxxxxx>
wrote:
Thanks Joe.

Unfortunately, no.

The FETCH FIRST xx ROWS clause requires a literal value, it doesn't
work with variables.

Still, this is very nice, and significantly more elegant than any of
the other pure-SQL attempts in this thread.

John Y.
--
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.



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.