Functions Definition Syntax
Functions Definition Syntax
SUM(expression)
SQUARE(number)
SIGN(number)
ROUND(number,
decimal_places, operation)
RADIANS(number)
POWER(m, n)
MIN Find the price of the cheapest product SELECT MIN(Price) AS SmallestPrice
in the "Products" table. FROM Products;
MIN(expression)
MAX Find the price of the most expensive SELECT MAX(Price) AS LargestPrice
product in the "Products" table. FROM Products;
MAX(expression)
CHAR(number_code)
CHARINDEX Search for "t" in string "Customer", and SELECT CHARINDEX('t', 'Customer')
return position. AS MatchPosition;
CHARINDEX(substring, string,
start_pos)
LOWER(string)
REPLACE(string1,
string_to_replace,
replacement_string)
SPACE(number)
UPPER(string)
DATEPART(interval, date)
ISNULL(expression, alt_value)
Members:
Flores, Jaco