Calculate position based on a value |
12-17-2015, 06:29 AM
(This post was last modified: 12-17-2015, 06:31 AM by davicotico. Edit Reason: fix ) (12-17-2015, 12:22 AM)Violette Wrote: Thank you but I had already made the correction. With this fields: from_user_id, total_stats You can order by total_stats and get the rank position without update another table: Code: SELECT from_user_id, total_stats, position FROM And for a single user too: Code: SELECT from_user_id, total_stats, position FROM |
Messages In This Thread |
Calculate position based on a value - by Violette - 12-14-2015, 08:09 AM
RE: Calculate position based on a value - by keulu - 12-14-2015, 09:13 AM
RE: Calculate position based on a value - by Violette - 12-15-2015, 12:18 AM
RE: Calculate position based on a value - by ozzy mandiaz - 12-15-2015, 01:16 PM
RE: Calculate position based on a value - by Violette - 12-17-2015, 12:22 AM
RE: Calculate position based on a value - by davicotico - 12-17-2015, 06:29 AM
|