If aggregate functions are used to perform operations across entire columns/vertically, How do we perform aggregation ac
Posted: Fri Jul 08, 2022 6:36 am
If aggregate functions are used to perform operations across entire columns/vertically, How do we perform aggregation across rows/horizontally? By using ROW_SUM function i.e. SELECT ROW_SUM (coll, col2) AS coll_plus_col2 FROM table; By using simple arithmetic, i.e SELECT (coll + col2) AS coll_plus_col2 FROM table; Aggregate functions can perform operations across rows/horizontally also, i.e. SELECT SUM (coll, col2) AS coll_plus_col2 FROM table; Aggregate functions can only be performed on columns/vertically and not on rows/horizontally.