Below are two functions that can be used to return the day from a date in Oracle Database.
Continue readingAuthor: Ian
Fix “Cannot install in Homebrew on ARM processor in Intel default prefix (/usr/local)!”
I recently tried to install QEMU on my M1 Mac but received the “Cannot install in Homebrew on ARM processor in Intel default prefix” error.
Here’s how I fixed the issue.
Continue readingOracle Datetime Functions (Full List)
Below is a full list of datetime functions available in Oracle Database.
Continue readingTRUNC(date) Function in Oracle
In Oracle Database, the TRUNC(date)
function returns the given date value with the time portion of the day truncated to the unit provided in the specified format model.
Oracle also has a TRUNC(number)
syntax, which is used on numbers. This article is solely about the TRUNC(date)
syntax, which is used on dates.
TO_YMINTERVAL() Function in Oracle
In Oracle Database, the TO_YMINTERVAL()
function converts its argument to a value of INTERVAL MONTH TO YEAR
data type.
SYS_EXTRACT_UTC() Function in Oracle
In Oracle Database, the SYS_EXTRACT_UTC()
function extracts the UTC (Coordinated Universal Time) from a datetime value with time zone offset or time zone region name.
GREATEST() Function in Oracle
In Oracle Database, the GREATEST()
function returns the greatest of a list of one or more expressions.
LEAST() Function in Oracle
In Oracle Database, the LEAST()
function returns the least of a list of one or more expressions.
Supported Format Models for the ROUND() and TRUNC() Date Functions in Oracle
Below is a full list of the format models that are available to be used with the ROUND(date)
and TRUNC(date)
functions in Oracle Database.
TO_TIMESTAMP() Function in Oracle
In Oracle Database, the TO_TIMESTAMP()
function converts its argument to a value of TIMESTAMP
data type.