| SQL Average |
|
The built in SQL average function enable to you calculate the average values of a column. To the use the average function you would use the following syntax: SELECT AVG("column_name") FROM "table_name" Table: Student
Given the table above, if we want to get the average course fees for the four students we would issue the following statement: SELECT AVG(CourseFees) AS 'AVG Course Fees' FROM Student
RESULT: AVG Course Fees 1875.00
|