Different Aggregation functions in SAP HANA


In a general scenario, it is advisable to store the table as Column store when you have to run complex OLAP queries. OLAP queries include complex calculations and different SQL aggregation functions are used in the query.

Select Sum(Sales) from table_name where Column1=’ABC’; 

Aggregate Functions include −

  • Sum() - returns the sum of the numeric values in a given column

  • Max() - returns the maximum of the numeric values in a given column

  • Min() - returns the minimum of the numeric values in a given column

  • Average() - returns the average of the numeric values in a given column

  • Percent() - returns the percentage of the numeric values in a given column

  • Count() - returns the count of the numeric values in a given column

Updated on: 17-Jun-2020

744 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements