SQL Full Course Tutorial
- 65Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
65 questions
- 1SQL is the language used to communicate between you and a_____.
Hint
Think about where data is stored and accessed.
Answer
database
- 2The acronym CRUD stands for Create, Read, Update, and_____.
Hint
It's the fourth operation in the set of basic functions for persistent storage.
Answer
Delete
- 3DQL stands for Data Query Language and is used for the_____aspect of CRUD.
Hint
Which CRUD operation involves retrieving data?
Answer
read
- 4DML stands for Data Manipulation Language and is used for creating, updating, and deleting data in_____tables.
Hint
These operations modify data within tables that already exist.
Answer
existing
- 5DDL stands for Data Definition Language and deals with creating or deleting the_____and tables from scratch.
Hint
It also involves the overall structure of the database.
Answer
schemas
- 6Databases can be run locally or in the_____.
Hint
This option allows access from anywhere in an organization.
Answer
cloud
- 7Relational databases store data in rows and_____.
Hint
This structure is similar to a spreadsheet.
Answer
columns
- 8NoSQL stands for Not Only_____.
Hint
It's a broader category than just SQL.
Answer
SQL
- 9The database used in this course is_____because it is blazingly fast, free, open-source, and runs locally and in the cloud.
Hint
It satisfies all the criteria mentioned.
Answer
DuckDB
- 10Mother Duck is the managed cloud platform that allows you to host DuckDB databases in the_____.
Hint
It's the commercialized version that runs on cloud infrastructure.
Answer
cloud
- 11A data warehouse must be subject-oriented, non-volatile, integrated, and_____.
Hint
It stores historical data across different time periods.
Answer
time variant
- 12In an ERD, a fact table contains the core data for analysis, measuring and recording actual_____.
Hint
What do facts represent in a business process?
Answer
events
- 13Dimension tables describe attributes or_____of the data, supporting filtering and grouping.
Hint
They provide context to the facts.
Answer
dimensions
- 14The SELECT keyword identifies the columns or_____from a database.
Hint
It specifies what you want to retrieve.
Answer
data
- 15The FROM keyword identifies the_____we are connecting to.
Hint
It specifies the data source.
Answer
tables
- 16In SQL, the asterisk (*) is a special command that selects all_____from a table.
Hint
It represents everything in the table.
Answer
columns
- 17The LIMIT keyword is used to_____the number of rows returned by a query.
Hint
It restricts the output to a certain number.
Answer
limit
- 18The DISTINCT keyword, placed right after SELECT, returns only_____values from a column.
Hint
It eliminates duplicates.
Answer
unique
- 19A semicolon at the end of a query is a best practice and is crucial when building_____pipelines.
Hint
It terminates a statement in many databases.
Answer
data
- 20The WHERE clause is used to filter rows based on a specified_____.
Hint
It restricts which rows are returned.
Answer
condition
- 21NULL is a special marker that indicates a field does not have any_____.
Hint
It's not zero or empty string; it's unknown or missing.
Answer
value
- 22To filter for NULL values, you must use the_____operator instead of equals.
Hint
You cannot use = to check for NULL.
Answer
IS
- 23In SQL, comments can be added using double dashes for single-line or using forward slash asterisk for_____comments.
Hint
This allows you to comment out larger blocks.
Answer
multi-line
- 24The ORDER BY keyword sorts the result set by one or more_____.
Hint
It arranges output in ascending or descending order.
Answer
columns
- 25By default, ORDER BY sorts in_____order.
Hint
It starts with the smallest value first.
Answer
ascending
- 26To sort in descending order, you add the keyword_____after the column name.
Hint
It reverses the order.
Answer
DESC
- 27The correct order of SQL clauses is: SELECT, FROM, WHERE,_____, HAVING, ORDER BY, LIMIT.
Hint
This clause groups rows that have the same values.
Answer
GROUP BY
- 28Comparison operators include equal, not equal, greater than, less than, and_____.
Hint
This operator is used for pattern matching.
Answer
LIKE
- 29Logical operators include AND, OR, and_____.
Hint
It negates a condition.
Answer
NOT
- 30The AND operator returns rows only when_____conditions are true.
Hint
It's more restrictive.
Answer
both
- 31The OR operator returns rows when_____of the conditions is true.
Hint
It's less restrictive.
Answer
any
- 32The BETWEEN operator is used to filter values within a given_____.
Hint
It's inclusive of the boundaries.
Answer
range
- 33The IN operator allows you to specify multiple values in a WHERE clause more_____.
Hint
It replaces multiple OR conditions.
Answer
succinctly
- 34The underscore wildcard represents exactly_____character(s).
Hint
It matches a single character.
Answer
one
- 35The percent sign wildcard represents zero, one, or more_____.
Hint
It matches any sequence of characters.
Answer
characters
- 36Aliases are used to rename columns and_____to make queries easier to read.
Hint
They provide temporary names.
Answer
tables
- 37The arithmetic operators include addition, subtraction, multiplication, division, and_____.
Hint
It returns the remainder of division.
Answer
modulus
- 38Aggregate functions include COUNT, SUM, AVG, MIN, MAX, and_____.
Hint
It finds the middle value in a set.
Answer
MEDIAN
- 39COUNT(*) counts all rows in a table, including those with_____values.
Hint
It includes rows even if some columns are empty.
Answer
NULL
- 40The GROUP BY clause groups rows that have the same values into_____rows.
Hint
It aggregates data for each group.
Answer
summary
- 41The HAVING clause filters queries based on aggregate functions and_____.
Hint
It is used after GROUP BY.
Answer
groupings
- 42A primary key is a unique identifier for a row in a_____.
Hint
It ensures each row can be uniquely identified.
Answer
table
- 43A foreign key is a relationship to another table's_____key.
Hint
It links two tables together.
Answer
primary
- 44Information schema is a collection of read-only_____that provides metadata about the database.
Hint
It's like a catalog of database information.
Answer
views
- 45A LEFT JOIN returns all records from the left table and the matching rows from the_____table.
Hint
It preserves all rows from the first table.
Answer
right
- 46A RIGHT JOIN returns all records from the right table and the matching records from the_____table.
Hint
It's the reverse of LEFT JOIN.
Answer
left
- 47An INNER JOIN returns rows when there is a_____in both tables.
Hint
It only returns rows that have corresponding rows in both tables.
Answer
match
- 48A FULL OUTER JOIN returns all rows from both tables; if there is no match, the missing side is_____.
Hint
It combines the results of both LEFT and RIGHT joins.
Answer
NULL
- 49The PARSER in a database engine reads your SQL text and checks for_____.
Hint
It checks syntax and builds a parse tree.
Answer
validity
- 50The OPTIMIZER figures out the most efficient way to run your query by reordering joins and choosing scan strategies, thereby_____your SQL.
Hint
It improves performance.
Answer
optimizing
- 51The EXPLAIN keyword shows the query_____without executing the query.
Hint
It provides estimated row counts and operations.
Answer
plan
- 52EXPLAIN ANALYZE executes the query and provides runtime performance numbers for every_____.
Hint
It gives actual timings and row counts.
Answer
operator
- 53A CTE (Common Table Expression) is defined using the WITH keyword and creates a_____result set that can be referenced within a query.
Hint
It exists only during the execution of the query.
Answer
temporary
- 54A subquery is a query nested inside a_____query.
Hint
It is enclosed in parentheses.
Answer
larger
- 55The EXISTS operator is used to test for the existence of rows in a_____.
Hint
It returns true if the subquery returns any rows.
Answer
subquery
- 56The MERGE statement performs an INSERT, UPDATE, or DELETE operation based on whether rows_____between source and target.
Hint
It combines operations into one statement.
Answer
match
- 57Window functions perform calculations across a set of table rows that are related to the current row, while keeping the current row_____.
Hint
Unlike GROUP BY, they do not collapse rows.
Answer
intact
- 58The PARTITION BY clause in a window function divides the rows into_____within which the function operates.
Hint
It's like a GROUP BY for window functions.
Answer
groups
- 59The RANK window function assigns a rank to each row within a partition, with gaps in ranking for_____values.
Hint
If two rows have the same value, they get the same rank and the next rank is skipped.
Answer
tied
- 60The LAG function in window functions accesses data from a_____row in the same result set.
Hint
It looks backward.
Answer
previous
- 61The LEAD function accesses data from a_____row.
Hint
It looks forward.
Answer
following
- 62In DuckDB, an array is an ordered collection of the_____type values.
Hint
All elements must be of the same data type.
Answer
same
- 63A struct is a composite data type containing multiple named_____.
Hint
It's like a record with named attributes.
Answer
fields
- 64An array of structs combines an array and a struct, where each element of the array is a_____.
Hint
It's an array containing multiple structures.
Answer
struct
- 65JSON is a text-based serialization format for_____data.
Hint
It is commonly used in APIs.
Answer
nested

Ask anything
We've read this whole study set, so questions about it get the best answers.