- Joined
- Apr 11, 2011
- Messages
- 24
- Reaction score
- 8
I noticed that sometimes there may be an overwhelming amount of unorganized information in the Uber database regarding the users. I have developed a query to simplify a few things, to display only some of the important user information.
Display All:
Notes:
The reason I did not do "SELECT DISTINCT" is because the id column in the users table is set to be automatically incrementing. If I put DISTINCT it would be kind of redundant seeing as each id is unique.
Credits:
Saia ([email protected]).
Display All:
Code:
SELECT u.id AS 'User ID', u.ip_last AS 'User IP Address', u.username AS 'Username', u.gender AS 'Sex', r.name AS 'Rank', u.credits AS 'Credits', u.activity_points AS 'Pixels', u.online AS 'Online Status'
FROM users u
INNER JOIN ranks r
ON u.rank = r.id
ORDER BY u.id ASC
Notes:
The reason I did not do "SELECT DISTINCT" is because the id column in the users table is set to be automatically incrementing. If I put DISTINCT it would be kind of redundant seeing as each id is unique.
Credits:
Saia ([email protected]).
Last edited:

