Question 1
Which description best defines a correlated subquery?
Correct Answer:
A subquery that is evaluated for each row of the outer query
Explanation:
A correlated subquery is a subquery that references a column from the outer query, so it must be evaluated for each row of the outer query. Because the inner query depends on values from the current outer row, the database re-runs it for every row, using that row’s data to determine the condition. This is why you often see correlations in EXISTS or in comparisons that relate the outer row to related data. For example, a query that asks for employees whose salary is above the average salary in their own department uses the department value from the outer row inside the inner query, making the inner query depend on each outer row. In contrast, a non-correlated subquery does not reference outer columns and can be executed just once, producing a result that the outer query uses later. An inner query that uses an aggregate or doesn’t reference outer values isn’t by itself a correlation; the key idea is the dependency on the outer query’s current row.
Question 2
A group of attributes describing the structure of entities is called what?
Correct Answer:
Entity-type
Explanation:
In database modeling, an entity type is a class of objects that share the same attributes. The attributes define the properties every member of that class has, so the collection of those attributes describes the structure of that group. That’s why the best term is entity-type. The other terms don’t fit common modeling language: attribute-type isn’t used to name a class of entities, relation-type refers more to a table or association, and schema-type isn’t standard terminology—the overall blueprint is called a schema.
Question 3
What is the database system catalog that stores metadata about tables, views, and constraints?
Correct Answer:
Data Dictionary
Explanation:
The data dictionary is the database system catalog that stores metadata about tables, views, constraints, and other schema objects. This centralized store describes the structure of the database—table and column definitions, data types, constraints, indexes, views, permissions, and more—so the DBMS can validate queries, enforce rules, and plan execution. The actual user data sits in tables, while metadata about those objects lives in the data dictionary, which the system uses behind the scenes. Other terms don’t fit because they don’t represent a centralized repository for schema metadata: an attribute is a column property, a block is a storage unit, and a clause is part of SQL syntax.
Question 4
Which operator lets you combine two SELECT statements into one, requiring the same number of output fields in the same order?
Correct Answer:
UNION
Explanation:
Union is used to combine two SELECT results into one result set, as long as both queries return the same number of columns in the same order. It effectively stacks the rows from both queries into a single list. By default, duplicates are removed, so you get each distinct row once; if you want to keep duplicates, use UNION ALL. The other options work differently: JOIN merges related rows from two tables side by side based on a condition, not simply stacking results; INTERSECT returns only rows that appear in both result sets; DIFFERENCE (or EXCEPT/MINUS) returns rows that appear in the first result but not in the second.
Question 5
Which SQL statement creates a new table?
Correct Answer:
Create Table
Explanation:
Creating a new table in SQL is done with CREATE TABLE, which defines the table’s name and its columns with their data types and any constraints. This statement establishes the structure of the table, and you can add data later with INSERT. For example: CREATE TABLE employees ( id INT PRIMARY KEY, name VARCHAR(100), salary DECIMAL(10,2) ); The other statements perform actions on existing tables: INSERT INTO adds new rows, UPDATE changes data in existing rows, and SELECT retrieves data from the table.
Question 1
Exam overview

About this Exam

Prepare with the SQL Basics Practice Test practice quiz. This question bank includes 10 questions covering column, table, expression, value, and basics. Use it to review important concepts, identify knowledge gaps, and build confidence for the related exam, course, or assessment.

More details

Additional Information

SQL Basics Practice Test

This practice set contains 10 questions from the matching question bank and focuses on column, table, expression, value, and basics. Work through each question carefully, review the provided solutions, and revisit topics that need more study before your next attempt.

This is an independent study resource intended for practice and review; it is not an official examination or an endorsement by any organization named in the title.

Quiz information

Frequently Asked Questions

The complete question count is available after full access is unlocked.
No fixed duration is currently configured for this quiz.
Question explanations are included where they are available in the quiz content, helping you review the reasoning after answering.
Yes. You can retake the practice test again as you continue studying during your available access period.
After your access is confirmed, you can continue into the complete practice exam from this quiz flow.
Unless explicitly stated otherwise, this page provides independent practice material for study and exam preparation and is not the official examination itself.
Keep studying

Related Questions