In this section we are going to illustrate aggregate function, with the help of which we can use many arithmetic operation like average, count, maximum and many more in SQL. They are briefly described and denoted by the keyword in the given below section.
For all of the above given function the standard code syntax will be:
|SELECT "function type" ("column_name") FROM "table_name"|
For example we just take a Employee table and use the aggregate function SUM on the field "Salary" to find out the total salary of the Employee table.
To find out the total salary of the company's employee we should write the following code:
|SELECT SUM (Salary) FROM Employee;|
When we run the above query we will get the following result:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.