Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Bottom 'n' From...
Message
From
24/08/1999 13:43:44
Richard Hackett
Dr Dick's Software Inc
Edmonton, Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select Bottom 'n' From...
Miscellaneous
Thread ID:
00257214
Message ID:
00257214
Views:
48
Hi all
As far as I can tell SQL-SELECT doesn't support ORDER BY ASC for TOP 'n' queries, just DESC. Is there any way to simulate BOTTOM 'n' in a VFP SQL-SELECT line such as:
SELECT TOP 'n' field1 FROM mytable WHERE field1 < lnmyvariable ORDER BY field1 DESC
This may seem like a long shot but maybe there is there a cunning function known only to UT subscribers which inverts character, date or numeric values...worth asking anyhow.
TIA
Dick
Next
Reply
Map
View

Click here to load this message in the networking platform