A Guide to SQL, Ninth Edition Page 4–11
©2016 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part,
except for use as permitted in a license distributed with a certain product or service or otherwise on a password–
protected website for classroom use.
➢ COUNT: Function that counts the number of rows in a table
➢ DESC: Operator included in an ORDER BY clause when results are to be sorted in
descending order
➢ DISTINCT: Operator that eliminates duplicate values in the results of a query
➢ FROM clause: The clause that indicates the table from which to retrieve the specified
columns
➢ GROUP BY clause: The clause that groups rows based on the specified column
➢ grouping: Creates groups of rows that share some common characteristic
➢ HAVING clause: The clause that limits a condition to the groups that are included
➢ major sort key: The more important column when data on two columns needs to be sorted
➢ MAX: Function that calculates the maximum value in a numeric range
➢ MIN: Function that calculates the minimum value in a numeric range
➢ minor sort key: The less important column when data on two columns needs to be sorted
➢ NOT: Operator that reverses the truth of the original condition
➢ NOT condition: A WHERE clause that uses the NOT operator to connect simple
➢ SELECT clause: The clause that specifies the columns to retrieve in the query
➢ simple condition: A condition that has the form: column name, comparison operator, and
either another column name or a value
➢ sort key: The column on which data is to be sorted when the ORDER BY clause is used
➢ subquery: The inner query in nested queries