I have two tables 'users' and 'invites'
Fields of users - id, name, email, ...
Fields of invites- email, invitedby, status
My Problems:
Find the rank list of users on 'invites' table where the top user will be the one who has the most number of (status='confirmed') invites.
Find the rank of a particular user say id=15 where it stands on the rank list of total umber of invites.
Tones of Thanks in advance