Functions in SQL
There are two type of SQL Functions.
A. Aggregate Functions:-SQL aggregate functions return a single value, calculated from values in a column.
A. Aggregate Functions:-SQL aggregate functions return a single value, calculated from values in a column.
- FIRST():-It returns the first value
- LAST():-It returns the last value
- AVG():-It returns the average value
- COUNT():- It returns the number of rows
- MAX():- It returns the largest value
- MIN():- It returns the smallest value
- SUM():- It returns the sum
- UCASE():- It converts a field to upper case
- LCASE():- It converts a field to lower case
- MID():- It extract characters from a text field
- LEN():- It returns the length of a text field
- ROUND():- It rounds a numeric field to the number of decimals specified
- NOW():- It returns the current system date and time
- FORMAT():- It formats how a field is to be displayed