SQL Functions Flashcards
What is an Aggregating function?
An aggregating function takes a list of values and returns just one value
Name the Aggregating Functions
SUM, COUNT, MAX, MIN, ROUND, AVG
What does the ORDER BY function do?
The ORDER BY causes orders or sorts a result based on the values in one or more specific columns.
What does the GROUP BY function do?
Divides the rows in a table into smaller groups
What clause can be used to filter rows BEFORE aggregation?
The WHERE clause
What clause can be used to filter rows AFTER aggregation?
The HAVING clause
What does the LEFT() function do?
Returns the leftmost characters from the string
What is a CASE statement used for?
You can use a CASE statement to put values into categories
What does the COALESCE function do?
Returns the first non-NULL value in the list, or NULL if there are no non-NULL values.
What does a Null value indicate?
an unknown value or “not applicable”