In SQL Server, the T-SQL LOG()
function is a mathematical function that returns the natural logarithm of the specified float expression.
You specify the float expression as an argument. You can also provide a second (optional) argument to set the base for the logarithm.