SQL Course Introduction
- 35Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
35 questions
- 1A_____is a collection of data stored in a format that can be easily accessed.
Hint
Think of a structured repository for storing information.
Answer
database
- 2The software application used to manage databases is called a_____.
Hint
It's an acronym that stands for a system that interacts with databases.
Answer
database management system (DBMS)
- 3In relational databases, data is stored in_____that are linked to each other using relationships.
Hint
Think of the structure that holds rows and columns.
Answer
tables
- 4Non-relational databases are also called_____.
Hint
This term literally means 'not only SQL'.
Answer
NoSQL
- 5SQL was originally called_____before being renamed due to a trademark conflict.
Hint
It stands for Structured English Query Language.
Answer
SEQUEL
- 6In a SELECT statement, the_____clause is used to specify which columns to retrieve.
Hint
This keyword is the first part of any query.
Answer
SELECT
- 7The_____clause in a SELECT statement specifies the table from which to retrieve data.
Hint
This keyword indicates the source of the data.
Answer
FROM
- 8To filter rows based on a condition, use the_____clause.
Hint
This clause comes after FROM.
Answer
WHERE
- 9The_____clause is used to sort the result set.
Hint
This clause typically appears at the end of a query.
Answer
ORDER BY
- 10To limit the number of rows returned by a query, use the_____clause.
Hint
This clause is often used for pagination.
Answer
LIMIT
- 11The_____keyword in a SELECT statement removes duplicate rows from the result.
Hint
It ensures each row is unique.
Answer
DISTINCT
- 12In a SELECT clause, you can rename a column using the_____keyword followed by the new name.
Hint
This creates an alias.
Answer
AS
- 13The_____operator checks if a value is within a range of values (inclusive).
Hint
It is used with AND.
Answer
BETWEEN
- 14The_____operator is used to compare a value to a list of possible values.
Hint
It is a shorthand for multiple OR conditions.
Answer
IN
- 15For more complex pattern matching, MySQL provides the_____operator.
Hint
It stands for regular expression.
Answer
REGEXP
- 16To check for missing values, use the_____operator.
Hint
NULL represents the absence of a value.
Answer
IS NULL
- 17The_____operator is used to combine rows from two or more tables based on a related column.
Hint
This operation links tables together.
Answer
JOIN
- 18An_____join returns rows that have matching values in both tables.
Hint
This is the default join if no type is specified.
Answer
INNER
- 19A_____join returns all rows from the left table, even if there are no matches in the right table.
Hint
It preserves all records from the first table listed.
Answer
LEFT
- 20When joining a table with itself, it is called a_____.
Hint
You use different aliases for the same table.
Answer
self join
- 21The_____keyword can simplify a join condition when the column names are identical in both tables.
Hint
It replaces the ON clause.
Answer
USING
- 22A_____join combines every row from the first table with every row from the second table.
Hint
This produces a Cartesian product.
Answer
CROSS
- 23The_____operator combines the results of two or more SELECT queries into a single result set.
Hint
It stacks rows vertically.
Answer
UNION
- 24To insert a new row into a table, use the_____statement.
Hint
This statement adds data to a table.
Answer
INSERT INTO
- 25The_____statement is used to modify existing rows in a table.
Hint
It changes data already stored.
Answer
UPDATE
- 26The_____statement removes rows from a table.
Hint
It deletes data permanently.
Answer
DELETE FROM
- 27A_____is a SELECT statement that is nested inside another SQL statement.
Hint
It is enclosed in parentheses.
Answer
subquery
- 28The_____function returns the auto-generated ID of the last inserted row.
Hint
It is commonly used after an INSERT to retrieve the new primary key.
Answer
LAST_INSERT_ID()
- 29The_____statement can be used to create a new table and copy data from an existing table in one step.
Hint
It combines table creation with data insertion.
Answer
CREATE TABLE AS
- 30In MySQL, a column with the_____attribute automatically generates a unique value for each new row.
Hint
It is often applied to primary key columns.
Answer
AUTO_INCREMENT
- 31A primary key consisting of multiple columns is called a_____primary key.
Hint
It combines two or more columns to uniquely identify a row.
Answer
composite
- 32The default sorting order in an ORDER BY clause is_____.
Hint
It arranges values from smallest to largest.
Answer
ascending (ASC)
- 33In the WHERE clause, the_____operator has higher precedence than OR.
Hint
It is evaluated before OR unless parentheses are used.
Answer
AND
- 34The_____data type is commonly used for variable-length strings in MySQL.
Hint
It stores characters efficiently.
Answer
VARCHAR
- 35To ensure that a column cannot have NULL values, the_____constraint is applied.
Hint
It forces a value to be provided.
Answer
NOT NULL

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