Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
44 views

Oracle SQL Functions

This document describes several Oracle SQL functions including NVL, TO_DATE, TO_CHAR, TZ, ADD_MONTHS, CAST, TO_NUMBER, CONCAT, EXP, INSTR, LENGTH, LISTAGG, LPAD, NULLIF, NVL2, COALESCE, FLOOR, GREATEST, and LTRIM. It provides the syntax, description and usage for each function.

Uploaded by

samara
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

Oracle SQL Functions

This document describes several Oracle SQL functions including NVL, TO_DATE, TO_CHAR, TZ, ADD_MONTHS, CAST, TO_NUMBER, CONCAT, EXP, INSTR, LENGTH, LISTAGG, LPAD, NULLIF, NVL2, COALESCE, FLOOR, GREATEST, and LTRIM. It provides the syntax, description and usage for each function.

Uploaded by

samara
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Function

NVL
TO_Date
TO_CHAR
TZ
ADD_MONTH
CAST
TO_NUMBER
CONCAT
EXP
INSTR
LENGTH
LISTAGG
LPAD
NULLIF
NVL2
COALESCE
FLOOR
GREATEST
LTRIM
Syntax
NVL(Check_value,Replace_value)
TO_DATE(char value[,format_mask[,nls_lang]])
TO_CHAR(input_value,[format_mask],[nls_param])
TZ(timestamp,timezone)
ADD_MONTH(Input_date,Number_months)
CAST(expr(MULTI_SET (Subquery) AS type_name
TO_NUMBER(Input_value,[Format_mask],[nls_parameter])
CONCAT(string1,string2)
EXP(Number)
INSTR(string,substring,[start_position],[occurrence]
LENGTH(string)
LISTAGG(measure_expr [, delimeter]) within group(order_by_clause)[over query_partition_clause]
LPAD(expr,length,[,pad_expr])
NULLIF(expr1,expr2)
NVL2(value_to_check,value_if_not_null,value_if_null)
COALESCE(expr1,expr2,[expr n])
FLOOR(Input_number)
GREATEST(expr1,[expr n])
LTRIM(Input_string, [trim_ character])
Description
Used to replace null or empty with another string
Converts string to date
Converts number or date to string
Converts timestamp value and specified time zone to a timestamp with timezone value
Adds specified number of months to a date
Converts one data type to another
Converts a text value to a number value
Allows to join or concatinate two strings together
Returns the value of e raised to specific value, e(number)
allows you to search a string for an occurunce of another string, and returns the position of the string
Finds the lengthor number of characters in a string
similar to concatenation but uses grouping
Adds extra characters such as spaces to the left side of string value , similar to RPAD functions
Compares two values to see if they match, if they match the functions returns null, if they don’t returns the first value
extension of NVL, allows us to handle null values, check a vlaue if it is null return something NVL has 2, NVL2 has 3 parameters
Great way tpo check multiple values are null or not
Rounds down to a whole number , similar to CEIL, and ROUND
Returns the greatest or largest value in a set of values, opposite of LOWEST function
Removes all the characters you specify from the left side of a string, similar to TRIM, RTRIM

You might also like