MariaDB SUM FunctionMariaDB SUM function is used to return the summed value of an expression. Syntax: SUM () Function with Single ExpressionExample: Calculate the total salary of the "Student" table where "student_id" is greater than 1. Output: SUM () Function with DISTINCT ClauseYou can use DISTINCT clause with SUM function to avoid duplicate values summation. Example: Output:
Next TopicMariaDB Min Function
|