Sorry for the weird title but I didn't know how else to title this. Is it possible to use a call like this so that I can get the average of all of the highest scores only from a DB table where any user may have more than one score for each test?
$sql = "SELECT AVG(score) FROM testscores WHERE testid='2' ORDER BY score DESC LIMIT 1";
Thanks in advance.