Jump to content

Query to pull member & member points together


jaymc

Recommended Posts

I have a member database and for each row in the database contains member information aswell as how many points a member has

 

I want to do a query to see How many members have more points than them which will inevertably give me there rank out of all the members

 

I was going to just structure a query to find all the members with > points than them and then use mysql_num_rows which would pick out there rank position

 

But to do  that Id first have to fetch there points so the entire operation will take 2 queries

 

Anyway to squeeze this into one query and is it best using my method of mysql num rows..

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.