Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT TOP is not standard
Message
From
30/04/2003 11:02:53
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/04/2003 10:52:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00783170
Message ID:
00783181
Views:
23
Fabio,
Unfortunately it's a known behaviour of 'Top N' in VFP :(
A workaround like this would do :
SELECT TOP 1 * from ctop ORDER BY 1 into cursor crsTemp nofilter
If (_Tally > 1)
 Select * from crsTemp where Recno() <= 1 into cursor crsTemp
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform