SUM function in MariaDB
MariaDB SUM To get the summed value of an expression, the MariaDB SUM function is used. Syntax 1: SELECT expressions, SUM (aggregate_expression) FROM table_name WHERE conditions; Syntax 2: To calculate SUM and grouping the results by one or more columns. SELECT expression1, expression2, … expression_n, SUM(aggregate_expression) FROM tables WHERE conditions GROUP BY expression1, expression2, … … Read more