1 +Functions+-+Intro
1 +Functions+-+Intro
/*
-- SQL provides many built-in functions to perform operations on data.
-- These functions are useful while performing mathematical calculations, string
concatenations, sub-strings, date & time etc.
-- SQL functions can be broadly categorized into following categories:
- Scalar functions: functions that take a single row/value as input and return
a single value
- Aggregate functions: functions that take multiple rows/values as input and
return a single value
- Window functions: subset of aggregate functions that can operate on a subset
of rows
- Table functions: functions that return results in tabular format
- System functions: functions that perform control operations or return system-
level information
*** We will work on couple of functions from each of above categories.
--SYSTEM FUNCTIONS:
CURRENT_ACCOUNT
CURRENt_USER
CURRENT_SESSION
CURRENT_ROLE
CURRENT_REGION
*/