I have 3 tables
- users table with user name and user id,
- leader board of users with user id and score
- leader board of likes with user id and numOfLikes
I want to select the name of the user with the most likes, and the name of the users with the most score. But my problem is that when I am writing the query I have duplicated name field there. What should I do?
i use following three tables in my query
To get details of user with max score use following
To get details of user with max number of likes use following
To get all in one query use following query