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



Mark,

I think to retrieve the top XX rows, there are other ways instead of using
TOP XX like in MS SQL server and Oracle. You can always order by the
appropriate columns.

Would the RRN not help for ROWNUM?

just my 2cents.

-----Original Message-----
From: M. Lazarus [mailto:mlazarus@ttec.com]
Sent: Wednesday, February 20, 2002 8:00 PM
To: rpg400-l@midrange.com
Subject: RE: embedded SQL Precompiler


Phil,

At 2/20/02 06:03 PM, you wrote:
>Are we missing any database functionality?

  As compared to what?  The rest of the SQL world?  PLENTY!  A couple of
examples:  How would you retrieve the top 10 of a list?  SQL Server and
Oracle (I believe) have TOP XX.  How about ROWNUM, which would allow me to
retrieve, say, rows 50-100?  This is on V4.5, so my apologies to Rochester
if these have been added in 5.1.

  -mark

_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.