SQL Basics Part4

hana sql newwHANA SQL Functions.




HANA SQL statements allows to specify various selection function in the queries. The selection function list as below.

Function Explanation
YEAR(Date) year
ADD_YEARS(Date, n) n years later
DAYNAME(Date) weekday (English)
CURRENT_DATE current date
ABS(Number) absolute value
ROUND(Number) rounding
SQRT(Number) square root
UPPER(String) convert to upper case
SUBSTR(String, Start, Length) cut out of a string (substring)
LENGTH(String) length of a string


One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s