Skip to content

Database.Guide

mssql

LOG10() Examples in SQL Server

November 19, 2019October 29, 2018 by Ian

In SQL Server, the T-SQL LOG10() function is a mathematical function that returns the base-10 logarithm of the specified float expression.

You specify the float expression as an argument.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

LOG() Examples in SQL Server

November 19, 2019October 27, 2018 by Ian

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.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

EXP() Examples in SQL Server

November 19, 2019October 26, 2018 by Ian

In SQL Server, the T-SQL EXP() function is a mathematical function that returns the exponential value of the specified float expression.

You specify the float expression as an argument.

The exponent of a number is the constant e raised to the power of the number. The constant e (2.718281…), is the base of natural logarithms.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

PI() Examples in SQL Server

November 19, 2019October 26, 2018 by Ian

In SQL Server, the T-SQL PI() function is a mathematical function that returns the constant value of π (pi).

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

COT() Examples in SQL Server

November 19, 2019October 26, 2018 by Ian

In SQL Server, the T-SQL COT() function is a mathematical function that returns the trigonometric cotangent of the specified angle – in radians – in the specified float expression.

You specify the angle by providing an argument to the function when calling it.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

COS() Examples in SQL Server

November 19, 2019October 26, 2018 by Ian

In SQL Server, the T-SQL COS() function is a mathematical function that returns the trigonometric cosine of the specified angle – measured in radians – in the specified expression.

You specify the angle by providing an argument to the function when calling it.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

FLOOR() Examples in SQL Server

November 19, 2019October 24, 2018 by Ian

In SQL Server, the T-SQL FLOOR() function allows you to round a number down to the nearest integer. More specifically, it returns the largest integer less than or equal to the specified numeric expression.

You provide the number as an argument. The return data type is the same as the one provided as an argument.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

CEILING() Examples in SQL Server

November 19, 2019October 24, 2018 by Ian

In SQL Server, the T-SQL CEILING() function allows you to round a number up to the nearest integer. More specifically, it returns the smallest integer greater than, or equal to, the specified numeric expression.

You provide the number as an argument. The return data type is the same as the one provided as an argument.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

ATN2() Examples in SQL Server

November 19, 2019October 24, 2018 by Ian

In SQL Server, the ATN2() function returns the arctangent between two values. Specifically, it returns the angle, in radians, between the positive x-axis and the ray from the origin to the point (y, x), where x and y are the values of the two specified float expressions.

You provide the values as arguments when calling the function.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql

ATAN() Examples in SQL Server

November 19, 2019October 24, 2018 by Ian

In SQL Server, the ATAN() function returns the arctangent of a value. In other words, it returns the angle, in radians, whose tangent is a specified float expression.

You provide the value as an argument when calling the function.

Read more

Categories SQL, SQL Server Tags functions, mathematical functions, mssql, t-sql
Older posts
Newer posts
← Previous Page1 … Page98 Page99 Page100 … Page113 Next →

About | Privacy Policy

© 2026 Database.Guide • All rights reserved