Introduction to SQL Questions
Practice Introduction to SQL MCQs with answers and explanations. Page 2 of 4.
Category
Database
Topic
Introduction to SQL
Page
2 / 4
Mode
Practice
Questions
Open any question to view the answer and explanation.
When you need to remove duplicate rows from the output of a SELECT query, which SQL keyword should you include to return only unique rows?
Open
View answer
In aggregation queries, what does the HAVING clause do, and how does it differ from WHERE when filtering results?
Open
View answer
From a database theory perspective, what is SQL most accurately categorized as within the data stack?
Open
View answer
When you run a valid SQL SELECT statement, what logical structure does the database return to the client (independent of how it is displayed by tools)?
Open
View answer
In SQL predicates, the BETWEEN operator is used for which type of comparison when filtering rows in a WHERE clause?
Open
View answer
Writing simpler multi-condition filters in SQL
When three or more AND and OR conditions are being combined to test membership or non-membership in a list of values, which SQL keyword(s) make the expression clearer and easier to maintain?
Open
View answer
Deleting rows from a table in SQL
Which command correctly removes one or more rows from the table named CUSTOMER while allowing you to filter which rows are affected?
Open
View answer
SQL as an ANSI standard
Which technology was adopted as a national standard by ANSI in 1992 (often called SQL-92)?
Open
View answer
Understanding the SQL WHERE clause
What does the WHERE clause restrict when you run a SELECT statement against a table or view?
Open
View answer
Inserting new rows with SQL
In a relational database, which SQL statement is used to add (append) a new row into an existing table?
Open
View answer
Sorting query results
Which SQL clause is used to sort the rows returned by a query in ascending or descending order by one or more expressions?
Open
View answer
Scope of SQL capabilities
Which statement best describes what SQL can do across data definition and data manipulation tasks?
Open
View answer
Reading data from tables
Which SQL statement is used to query (read) data from a table or view and return a result set to the client?
Open
View answer
Original goals of the SQL language
What was SQL originally designed to accomplish within relational database systems?
Open
View answer
Operational practice — database environments.
"Most companies keep at least two versions of any database they are using."
Open
View answer
SQL syntax and aliasing — evaluate this claim about a SELECT.
Statement under review:
SELECT Number1 + Number 2 AS Total FROM NUMBER_TABLE;
Does this add two numbers from each row and list the result in a column named Total?
Open
View answer
Career relevance — evaluate the claim.
"Microsoft Access has become ubiquitous, and being able to program in Access is a critical skill."
Open
View answer
Language classification — evaluate the statement.
"SQL is a data sublanguage."
Open
View answer
Aggregate functions scope — numeric vs. non-numeric.
"SUM, AVG, MIN, and MAX can only be used with numeric columns."
Open
View answer
SQL GROUP filtering: Evaluate the claim about HAVING vs. WHERE.
“The HAVING clause acts like a WHERE clause, but it identifies groups that meet a criterion rather than individual rows.”
Choose the most accurate assessment.
Open
View answer
Practice smarter
Solve a few questions daily and revisit weak topics regularly to improve accuracy.