Published on: 03 September, 2013


Posted by andy | 1744 views 0 likes 0 favourites 0 comments
Tumblr Digg Google Plus

Example Customer Table

The following data table is for example only. Let's use SUM() function to get the total sum of ages from a customer table. The column we going to use are the Age column.

ID Name Age
1 Thomas Anderson 45
2 Andrew Golden 38
3 Ken Tom 30
4 Andrew Golden 36
5 Timothy Kirk 32
6 Kelly Smith 39

Example of Running SQL Query

SELECT Sum(Age) AS Total_Age
FROM Customers

After running the above query, it will return the following result.


There are no comments available.

Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.