Services Partners Company
Knowledge Base


Article

Enhancement Request: SELECT statement be able to return a range of result set rows from the server to the client.

« Go Back

Information

 
EnvironmentAll Supported Operating Systems
OpenEdge 11.x
Question/Problem Description

To facilitate client application pagination of query result sets, the OpenEdge SQL SELECT statement should support the specification of the range of a query result set rows to be returned by the server to the client.

Steps to Reproduce
Clarifying Information
This enhancement request proposes the introduction of an Oracle like ROWNUM Pseudo column to allow the execution of SELECT statements like the following:
 
SELECT * FROM employees WHERE ROWNUM > 10 AND ROWNUM < 100;
 
or
 
SELECT * FROM employees WHERE ROWNUM BETWEEN 123 and 134;

In the absence of the above capability, applications must retrieve the whole result set and implement the result set pagination programmatically on the client.  This incurs both programming and performance costs.
Error Message
Defect/Enhancement NumberEnhancement OE00219573
Cause
Currently, the SELECT statement does not support application pagination or the retrieval of a specified range of rows from the result set.

The SELECT statement  currently supports the retrieval of either the whole result set of a query, as in:

SELECT * FROM PUB.Customer;

Or the TOP n rows from a query result set, as in:

SELECT TOP * FROM PUB.Customer;
Resolution
Enhancement Request OE00219573 has been logged for this issue.
Workaround
Notes
Attachment 
Disclaimer

The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.



Feedback
 
Was this article helpful?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful.



Characters Remaining: 255