Mysql
#5

Quote:
Originally Posted by Yousha
Посмотреть сообщение
Its because you are just selecting ONE (limit 1) and first record(by default)...
So I think it must be:

Код:
SELECT Username, Money FROM players GROUP BY Money DESC LIMIT 1;
Should i use group?
or

Код:
SELECT Username, Money FROM players ORDER BY Money DESC LIMIT 1;
Should i use group
Reply


Messages In This Thread
Mysql - by Loinal - 20.02.2017, 11:41
Re: Mysql - by Loinal - 20.02.2017, 13:16
Re: Mysql - by Mic_H - 20.02.2017, 13:28
Re: Mysql - by Yousha - 20.02.2017, 15:57
Re: Mysql - by Loinal - 21.02.2017, 13:03

Forum Jump:


Users browsing this thread: 2 Guest(s)