Jump to content

[SOLVED] Mysql ORDER BY help plz


valtido

Recommended Posts

Hi i have to columnt e.g. "NumberOfHits" and "points"...

 

im looking to select the record and order them by the difference between the two e.g.

 

"SELECT * FROM users ORDER BY average(points,numberOfHits) DESC LIMIT 10";

 

is there away to do this? to order them by those who have a higher average number.x

Link to comment
https://forums.phpfreaks.com/topic/117193-solved-mysql-order-by-help-plz/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.