tags:

views:

49

answers:

2

I do have a user data base with rank.what I am looking is how do I select top rank person based on today's search?? and I need to do this in daily basis.

+1  A: 

Try:

SELECT MAX(rank), id 
  FROM mytbl
 WHERE date = mydate
 GROUP BY id
Justin Ethier
+2  A: 

This will do:

SELECT id, rank, something 
FROM person 
WHERE date = DATE(NOW()) 
ORDER BY rank DESC LIMIT 1;
GuidoH