In SQL Server, the REPLACE()
function enables us to replace a string with another string. But what if you want to replace a list of characters with another list of characters?
The TRANSLATE()
function might help.
In SQL Server, the REPLACE()
function enables us to replace a string with another string. But what if you want to replace a list of characters with another list of characters?
The TRANSLATE()
function might help.
In Oracle, the COSH()
function returns the hyperbolic cosine of its argument.
In Oracle, the COS()
function returns the cosine of its argument.
If you have a hidden index in MongoDB, you can use the unhideIndex()
method or the collMod
administration command to unhide it.
In Oracle, the ROUND(number)
function returns a number rounded to a given number of decimal places.
By default, it rounds the number to zero decimal places, but you can provide an optional argument that specifies the number of decimal places to use.
Oracle also has a ROUND(date)
syntax, which is used on dates. This article is solely about the ROUND(number)
syntax, which is used on numbers.
In Oracle, the CEIL()
function returns the smallest integer that is greater than or equal to its argument.
In Oracle, the FLOOR()
function returns the largest integer equal to or less than its argument.
In Oracle, the LOG()
function returns the logarithm, base n2
, of n1
, where n2
is the first argument and n1
is the second.
In Oracle, the LN()
function returns the natural logarithm of its argument, where the argument is greater than 0
.
In other words, it returns the base-e logarithm of its argument.
The number e, also known as Euler’s number, is a mathematical constant approximately equal to 2.71828.
Continue readingMongoDB’s aggregation pipeline framework includes a $round
operator and a $trunc
operator. These operators perform similar, but different tasks.