#1

Fixed
Reply
#2

Any help?
Reply
#3

It is supposed to work.. Maybe the first one registered has the best score/money?
Reply
#4

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;
or

Код:
SELECT Username, Money FROM players ORDER BY Money DESC LIMIT 1;
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)