Manipulation
Aggregate Functions
Queries
Multiple Tables
Constraints
100

What clause do we use to query data from a table?

SELECT

100

_______ ________ combine multiple rows together to form a single value of more meaningful information.

Aggregate Functions

100

What two operators are used to combine multiple conditions in a SQL query?

AND and OR

100

What clause do we use when we want to combine two or more tables?

JOIN

100

This constraint can be used to uniquely identify the row.

PRIMARY KEY

200

What clause would we use to add a new row to a table?

INSERT INTO

200

What aggregate function adds all of the values in a column and returns the result?

SUM()

200

This clause allows columns or tables to be aliased, which means specifically renamed in the returned result set.

AS

200

________ is the default JOIN and it will only return results matching the condition specified by ON.

INNER JOIN

200

This constraint assigns a default value for the column when no value is specified

DEFAULT

300

What statement should we use to make a new table called contact_info?

CREATE TABLE contact_info

300

What aggregate function returns the mean of all values in a column?

AVG()

300

The _____ clause is used to narrow a result set to a specified number of rows.

LIMIT

300

A _______ is a reference in one table's record to the primary key of another table.

FOREIGN KEY

300

This constraint can be used to ensure that each row has a distinctive value within this column, none can be repeated.

UNIQUE

400

What clause would we use to edit a specific row within a table?

UPDATE

400

What aggregate function do we use to return the largest value in a column?

MAX()

400

______ is a popular command that lets you filter the results of the query based on conditions that you specify. 

WHERE

400

This clause stores the result of a query in a temporary table using an alias.

WITH

400

This constraint specifies that columns must have a value.

NOT NULL

500

What clause would we use to make a change to an existing table?

ALTER TABLE

500

What clause is used with aggregate functions to organize multiple rows of data by one or more columns?

GROUP BY

500

What clause would we use to sort selected results by a specific parameter?

ORDER BY

500

This will combine rows from different tables even if the join condition is not met

OUTER JOIN

500

You can only define one ________ constraint per table, which is sometimes confused with the _______ constraint, which can be used for multiple columns within a table, to define that no two rows can share the same value for that column.

PRIMARY KEY & UNIQUE

M
e
n
u