If you have an index on the file the index is already sorted so all you
have to do is use the index when you select. The only criteria would be
that the index is on the key or a field that will include all of the
records or NO.NULLS is off.
Example:
SELECT CUST.MSTR BY CLIENT.6 SAMPLE 2

Will give you the first two sorted entries.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George Gallen
Sent: Thursday, May 25, 2006 2:16 PM
To: [email protected]
Subject: [U2] OK...Is there a way....UV

I want to sort a file by @ID and only take the first two items...

SELECT FILE BY @ID SAMPLE 2
doesn't work, it first takes the sample of 2, then sorts it.

SELECT FILE BY @ID
SELECT FILE SAMPLE 2
works, but takes two lines

How can I phrase my SELECT so it will sort first, then sample later,
instead
  of sample first, sort later?

I'm running UV.

George

George Gallen
Senior Programmer/Analyst
Accounting/Data Division
[EMAIL PROTECTED]
ph:856.848.1000 Ext 220

SLACK Incorporated - Delivering the best in health care information and
education worldwide.
http://www.slackinc.com
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to