SQL Functions are Oracle Database built-in functions which can be used with SQL statements. These functions are divided into various types and categories. Let's see what those are -
Types of SQL Functions
In Oracle Database SQL functions are divided into two categories. These two catagories are -
- Single Row Functions
- Multiple row functions (Aggregate functions)
What are Single Row Functions?
Single-row functions operate on one row at a time and return one row of output for each input row. They are capable of manipulating data items and modifying the data types. These functions return one result per row and act on each row that is returned. Single row functions can accept one or more arguments and can return one value. These arguments can be a column or an expression.
Types of Single Row Functions
With oracle we have 5 types of Single Row Functions
- Character Functions
- Number Functions
- General Functions
- Conversion Functions and
- Date Functions.
Types of Character Functions
Character Functions are further divided into two categories.
- Case manipulation functions
- Character Manipulation functions.
In Oracle Database we have three Case Manipulation functions and seven Character Manipulation functions.The three Case Manipulation functions are -
- upper () and
- initcap ()
and seven Character Manipulation functions functions are -
- lpad() | rpad(),
- trim ()and
That's it for this tutorial. Hope you learnt something new. Make sure to read the next blog to learn how to use CONCAT() function as well as the differences between Concat () function and Concat operator.