The Oracle DECODE function can be considered an IF/ELSE variation. It compares the very same expression with other or others. Continue reading “The Oracle DECODE function”
In this short post, we are going to learn how to list all columns of every table in an Oracle database.
We want to get the name of the column, the name of the table it belongs to and the type of date for that column. Continue reading “Listing all columns from an Oracle database”
Let’s review Oracle date formatting.
This is useful for functions like TO_DATE, TO_CHAR or alter session to modify nls_date_format. Continue reading “Oracle date format”
Let’s take a look at the Oracle numeric format masks. Continue reading “Oracle numeric format”
The NULLIF function evaluates two expressions in the following way:
- If they are equal, it returns NULL.
- If they are not equal, it returns the first expression.
NVL2 provides a similar functionality as NVL function.
This function evaluates a column or expression in the following way:
- If the result is not NULL, it returns the second parameter that was given to NVL2 function.
- If the result is NULL, it returns the third parameter that was given to NVL2.