Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get rank value without rank field
Message
From
17/07/2011 12:13:07
 
 
To
15/07/2011 19:02:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MySQL
Miscellaneous
Thread ID:
01518322
Message ID:
01518398
Views:
95
This message has been marked as a message which has helped to the initial question of the thread.
Try this (MySQL command)
SELECT @rownum:=@rownum+1 'rank', Grades.Student, Grades.GenAve FROM Grades, (SELECT @rownum:=0) r ORDER BY GenAve DESC
Regards,
Ony
Regards,
Ony
Previous
Reply
Map
View

Click here to load this message in the networking platform