Saturday, 11 October 2014

MySQL SUM function is used to find out the sum of a field in various records.

idnameclassmark
1AFour75
2BThree85
3CThree55
4DFour60
5EFour60
6FFour55


query:-

SELECT sum( mark ) FROM `student`


Result:-


sum(mark)
390

No comments:

Post a Comment