MSSQLNumeric FunctionsLOG
EXP

LOGNumeric Functions

LOG10

Returns the natural logarithm or base-specified logarithm.

Syntax

LOG(n [, base])

Example

SELECT LOG(1000, 10) AS log10;  -- 결과: 3