I am new to SQL, and i would like to know how i can select the highest average from a group selection.<br>
<br>
ie SELECT REGNO,AVG(CWK) FROM RESULT GROUP BY MODULE.<br>
<br>
This will bring back x averages grouped by module, how do i select the highest average from this, and then use the associated REGNO for another table<br>
<br>
I hope that makes sense, and i hope someone can help<br>
<br>
Ant
<br>
ie SELECT REGNO,AVG(CWK) FROM RESULT GROUP BY MODULE.<br>
<br>
This will bring back x averages grouped by module, how do i select the highest average from this, and then use the associated REGNO for another table<br>
<br>
I hope that makes sense, and i hope someone can help<br>
<br>
Ant