Example
Convert a radian value into degrees:
SELECT DEGREES(1.5);
Definition and Usage
The DEGREES() function converts a value in radians to degrees.
Note: See also the RADIANS() and PI() functions.
Syntax
DEGREES(number)
Convert a radian value into degrees:
SELECT DEGREES(1.5);
The DEGREES() function converts a value in radians to degrees.
Note: See also the RADIANS() and PI() functions.
DEGREES(number)
Return the cotangent of a number:
SELECT COT(6);
The COT() function returns the cotangent of a number.
COT(number)
Return the cosine of a number:
SELECT COS(2);
The COS() function returns the cosine of a number.
COS(number)
Return the number of products in the “Products” table:
SELECT COUNT(ProductID) AS NumberOfProducts FROM Products;
The COUNT() function returns the number of records returned by a select query.
Note: NULL values are not counted.
COUNT(expression)
Return the smallest integer value that is greater than or equal to a number:
SELECT CEILING(25.75) AS CeilValue;
The CEILING() function returns the smallest integer value that is larger than or equal to a number.
Tip: Also look at the FLOOR() and ROUND() functions.
CEILING(number)
Return the average value for the “Price” column in the “Products” table:
SELECT AVG(Price) AS AveragePrice FROM Products;
The AVG() function returns the average value of an expression.
Note: NULL values are ignored.
AVG(expression)
Return the arc tangent of two values:
SELECT ATN2(0.50, 1);
The ATN2() function returns the arc tangent of two numbers.
ATN2(a, b)
Return the arc tangent of a number:
SELECT ATAN(2.5);
The ATAN() function returns the arc tangent of a number.
ATAN(number)
Return the arc sine of a number:
SELECT ASIN(0.25);
The ASIN() function returns the arc sine of a number.
The specified number must be between -1 to 1, otherwise this function returns NULL.
ASIN(number)
Return the arc cosine of a number:
SELECT ACOS(0.25);
The ACOS() function returns the arc cosine of a number.
The specified number must be between -1 to 1, otherwise this function returns NULL.
ACOS(number)