I currently have a request:
SELECT 'id', 'clanid', 'name',
'level', 'exp', 'warwinpercent',
'warswon', 'warslost', 'warstied',
'playercount', 'score'
FROM clans
WHERE warswon >= 100
ORDER BY warwinpercent DESC, warswon DESC;
Now it works, but in the end it is not as logical as I hope it can be ...
For example.
Let's say there is a series that has 99.5738% win in a war and 208 wars won. And one more that has a 100% victory in the war and 103 wars.
I would like the 99% row to be above the 100% row. Is there any way to make me work?
I have an equation:
warinpercent = warswon/(warswon+warstied+warlost)*100
order by warwinpercent
if warwinpercent are in a range of 3% then order by warswon between them.
user4942382
source
share