1.
COUNT()
Definition: Counts the number of rows in a table or how many non-null values are in a
column.
Example: To count how many employees are in a table:
sql
Copy code
SELECT COUNT(*) FROM Employees;
This will give the total number of employees.
2. SUM()
Definition: Adds up all the values in a numeric column.
Example: To calculate the total salary of all employees:
sql
Copy code
SELECT SUM(Salary) FROM Employees;
This will give the total salary for all employees combined.
3. AVG()
Definition: Calculates the average (mean) of values in a numeric column.
Example: To find the average salary of all employees:
sql
Copy code
SELECT AVG(Salary) FROM Employees;
This will give the average salary.
4. MIN()
Definition: Finds the smallest (minimum) value in a column.