Example
Return the cosine of a number:
SELECT COS(2);
Definition and Usage
The COS() function returns the cosine of a number. Continue reading MySQL COS Function
Return the cosine of a number:
SELECT COS(2);
The COS() function returns the cosine of a number. Continue reading MySQL COS Function
Return the smallest integer value that is greater than or equal to 25.75:
SELECT CEILING(25.75);
The CEILING() function returns the smallest integer value that is bigger than or equal to a number.
Note: This function is equal to the CEIL() function. Continue reading MySQL CEILING Function
Return the smallest integer value that is greater than or equal to 25.75:
SELECT CEIL(25.75);
The CEIL() function returns the smallest integer value that is bigger than or equal to a number.
Note: This function is equal to the CEILING() function. Continue reading MySQL CEIL Function
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. Continue reading MySQL AVG Function
Return the arc tangent of two values:
SELECT ATAN2(0.50, 1);
The ATAN2() function returns the arc tangent of two numbers.
ATAN2(a, b)
Return the arc tangent of a number:
SELECT ATAN(2.5);
The ATAN() function returns the arc tangent of one or two numbers. Continue reading MySQL ATAN Function
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. Continue reading MySQL ASIN Function
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. Continue reading MySQL ACOS Function
Return the absolute value of a number:
SELECT ABS(-243.5);
The ABS() function returns the absolute (positive) value of a number.
ABS(number)
Convert the text to upper-case:
SELECT UPPER("SQL Tutorial is FUN!");
The UPPER() function converts a string to upper-case.
Note: This function is equal to the UCASE() function. Continue reading MySQL UPPER Function