Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using select top N clause
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287704
Message ID:
01287899
Views:
11
Each item in the ORDER BY has a DESC option that is ascending by default, so to get what you are asking you need;
SELECT TOP 3 date,custId,notes FROM custNotes ORDER BY date DESC, custNotes DESC
Previous
Reply
Map
View

Click here to load this message in the networking platform