Code:
select c.clientname, round(avg(CONVERT(float,t.score)),5,0) from testscore t join client c on c.clientname=t.clientname where t.attemptdate >= X t.attemptdate < Y group by clientname
#timeframe
client name X Y
A 2010-10-01 2012-11-01
B ...
...
Leave a comment: