SQL Basics
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
20 questions
- 1SQL stands for Structured_____Language.
Hint
Think about the word that describes requesting information from a database.
Answer
Query
- 2SQL is primarily used to communicate with_____.
Hint
Consider what stores and organizes data that you interact with via SQL.
Answer
databases
- 3The acronym CRUD stands for Create,_____, Update, and Delete.
Hint
It's the 'R' in CRUD, referring to retrieving data.
Answer
Read
- 4A database table consists of columns (fields) and_____.
Hint
These are the horizontal entries that contain the actual data.
Answer
rows
- 5DBMS stands for Database_____System.
Hint
Think of the software that 'manages' databases.
Answer
Management
- 6The two main types of databases are relational and_____.
Hint
This type does not enforce relationships between tables.
Answer
non-relational
- 7The command to create a new database is CREATE_____name;
Hint
This SQL keyword indicates you are creating a new database object.
Answer
DATABASE
- 8The command to list all databases is SHOW_____;
Hint
This command displays a list of available databases.
Answer
DATABASES
- 9The command to list all tables in the current database is SHOW_____;
Hint
This command displays the tables within the currently selected database.
Answer
TABLES
- 10To add a new column to an existing table, use ALTER TABLE table_____column datatype;
Hint
This keyword specifies that you are adding something to the table structure.
Answer
ADD
- 11When creating a table, columns are defined by a name and a_____.
Hint
Think about what kind of data the column will store, like INT or VARCHAR.
Answer
data type
- 12To insert a new row into a table, use INSERT_____table VALUES (...);
Hint
This keyword follows INSERT to indicate the target table.
Answer
INTO
- 13To retrieve all columns from a table, use SELECT_____FROM table;
Hint
This symbol represents 'all' in SQL.
Answer
- 14To retrieve only specific columns, list them after SELECT and before the_____keyword.
Hint
This keyword specifies the table from which to retrieve data.
Answer
FROM
- 15To filter rows in a query, add a_____clause.
Hint
This clause specifies conditions that must be met.
Answer
WHERE
- 16The DELETE command should always include a_____clause to avoid deleting all rows.
Hint
Without this clause, all rows in the table are removed.
Answer
WHERE
- 17The UPDATE command uses the_____keyword to set new values for columns.
Hint
This keyword assigns new values to specified columns.
Answer
SET
- 18To order results by a column, use ORDER BY column_____ASC or DESC;
Hint
Specify ascending (default) or descending order.
Answer
ASC
- 19A string data type of variable length in MySQL is_____.
Hint
This data type stores text and allows a maximum number of characters.
Answer
VARCHAR
- 20A data type that stores true or false values in MySQL is_____.
Hint
This type is often represented as 1 (true) or 0 (false).
Answer
BOOLEAN

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