Two-dimensional structure with rows and columns.
What is a table?
Specifies how data is sorted in a results set.
What is ORDER BY?
SELECT COUNT(DISTINCT(counselors))
FROM campers
WHERE year = 2020;
How many unique camp counselors were there in 2020?
First requirement when creating a function
What is the equal sign?

What is an entity relationship diagram, ERD?
This uniquely identifies a row in a table (employee id, SSN, etc..)
What is a primary key?
Use the syntax /* */ or --
What is a comment?
SELECT *
FROM Orders
WHERE OrderDate = '2008-11-10' AND status = 'returned';
What is all the information for returned items that were originally ordered on November 10, 2008?
Function used to replace default error messages with custom messages
What is IFERROR?

What is metadata - or a data dictionary?
A type of database that 'relates' tables to each other.
Relational database?
It is used to rename a table or column. The renaming of the table or column is temporary and does not change the actual name of the table in the database.
What is an alias?
SELECT Emp_ID, COUNT(Sale) FROM employee
GROUP BY Emp_ID
ORDER BY 2 DESC
LIMIT 1;
What is the employee that made the most number of sales?
Function which returns values based on one or more true or false conditions.
What is IFS?
COUNT, SUM, MAX, MIN, AVG
What are the 5 aggregate functions in SQL?
Databases that store data in a non-tabular format (e.g. MongoDB, Neo4j, Apache Cassandra)
What is a NoSQL database?
This statement is used to specify conditional search
What is WHERE?
SELECT CONCAT(first_name, ' ', last_name)
FROM employees
WHERE LOWER(job) LIKE '%scientist%'
ORDER BY salary DESC
LIMIT 3;
What are the names of the 3 highest paid employees with 'scientist' in their job title?
Function which allows searches across columns.
Chart used to display the distribution of a single numeric variable
What is a histogram?
The process of arranging information in a way, which removes redundancy and ambiguity
What is normalization?
The keyword used to retrieve unique records in specified Columns
What is DISTINCT?
SELECT department, SUM(amount) AS q1_sales
FROM sales_table
WHERE Date BETWEEN '01-01-2023' AND '03-31-2023'
GROUP BY department
HAVING q1_sales > 5000;
Which departments had more than 5000 in sales in 2023?
Function that counts cells that have values, both letters and numbers.
What is COUNTA?
A separator such as a space, comma, or semicolon between elements and imported data in Google Sheets.
What is a delimiter?