Hi all
I'm using the following SQL statement to calculate the average results in a table.
The answer it gives is 3. But the table looks like this:
4,4,3,2,3,4,4,4,3,3
Now if my maths is correct, the answer should actually by 3.4.
Please does anyone know how to fix this problem as it is a really important part of my database -- I've got these average calculations everywhere.
Any help is very much appreciated
Many thanks
Daniel
I'm using the following SQL statement to calculate the average results in a table.
Code:
SELECT Avg(results.resultsQ1) AS AvgOfresultsQ1 FROM results WHERE (((results.participantCourseID)=23);
The answer it gives is 3. But the table looks like this:
4,4,3,2,3,4,4,4,3,3
Now if my maths is correct, the answer should actually by 3.4.
Please does anyone know how to fix this problem as it is a really important part of my database -- I've got these average calculations everywhere.
Any help is very much appreciated
Many thanks
Daniel