Basic DB
Intro to SQL
Queries
Combining Tables
Wild Card
100
Two-dimensional structure with rows and columns.
What is a table?
100

The required commands for a SQL query 

What are SELECT & FROM?

100
Specifies how data is sorted in a results set.
What is the ORDER BY clause?
100

This keyword retains any duplicate rows that are produced by UNION

What is a ALL? (UNION ALL)

100

Click the 'EXECUTE' command on the toolbar

OR

Ctrl + Enter

How do you run a SQL query?

200
This uniquely identifies a row in a table.
What is a primary key?
200

Determines which rows are selected from the tables; works as a filter

What is the WHERE command?

200
In a SQL query, specifies the table that data is selected from.
What is the FROM clause?
200

Stacks tables onto each other, lining up common fields, and adding rows

What is a UNION?

200

Eliminates duplicates from a SQL query

What is DISTINCT?

300
A type of database that 'relates' tables to each other.
What is a relational database
300

Non-aggregated fields/columns that appear in the SELECT statement with fields/columns that are aggregated must appear here.

What is the GROUP BY command?

300

This character allows you to SELECT all records from a table, without having to list each column out.

What is an asterisk?

300

Combines columns from separate tables using unique identifiers, similar to VLOOKUP's in Excel

What is a JOIN?

300
NOT AND OR
What is the order of operations for compound WHERE statements?
400

Stored queries that create a "table" that you can then further query off of.

What is a view?

400

This SQL Command filters only on aggregated values

What is HAVING?

400

This character indicates the end of a SQL query

What is a semicolon

400

Only returns rows where there is a match in both tables on the join key, default JOIN type

What is an INNER JOIN?

400

Use the syntax /* */ or --

How do you add comments to SQL?

500

A free multi-platform database tool for developers, database administrators, analysts and all people who need to work with databases.

What is DBeaver?

500

Used to group data into categories/classifications, and/or map labels to certain data values/conditions

What are CASE statements?

500

WHERE Weight is between 2000 and 3000

OR Where Weight is > 1999 and < 3001

OR WHERE Weight is >= to 2000 and <=3000

What WHERE clause will select weight values between 2000 and 3000?

500

When tables in a union don't match, the union produces extra fields. The extra fields are valid data being excluded from their appropriate context.

What is UNIONing data in Tableau Prep?
500
* % _
What are wild card characters in SQL?
M
e
n
u