These cookies provide us with information on how our websites are being used, to help us improve the quality and relevance of content we place on them. Additionally, they also allow us to show you embedded videos and remember your preferences and actions, so that the websites do not bother you with the same request repeatedly (e.g. filling a form to download a PDF file and provide feedback about such actions to our affiliated entities).
LOG
The LOG function returns the logarithm of a number for the given base specified in second parameter of the LOG function. If the base value is omitted, base 10 is used.
The LOG function has the following format:
LOG(n,b)
- n is any positive value
- b is base, b is any positive value other than 0 or 1
Syntax
SELECT LOG(…)
SELECT SQRT(number, base)
Examples
SELECT LOG(10, 1/12)
SELECT LOG(SUM({fact/amount}), 2)
SELECT LOG({metric/amount_max} * 400, {metric/amount_Max})