Microsoft SQL Server Database Quiz Questions

Chapter Name:Chapter 7 - DQL (Data Query Language)
Lesson Content Link:WHERE Clause
Current Quiz Count:30
Progress
0%
Q1
True / False

In SQL Server, the WHERE clause filters rows based on a condition.

Q2
True / False

The WHERE clause should be used after GROUP BY to filter aggregate groups.

Q3
True / False

A WHERE clause can be used with SELECT, UPDATE, and DELETE statements.

Q4
True / False

The predicate column_name = NULL correctly finds NULL values in SQL Server.

Q5
True / False

BETWEEN includes both boundary values.

Q6
True / False

Without parentheses, SQL Server evaluates AND before OR in a WHERE condition.

Q7
True / False

In a LIKE pattern, % matches zero or more characters.

Q8
True / False

A column alias created in the SELECT list can always be referenced by the WHERE clause in the same query block.

Q9
True / False

A NOT IN subquery that returns NULL can make the predicate UNKNOWN and unexpectedly return no rows.

Q10
True / False

WHERE filters rows before aggregate functions are calculated.

Q11
Single Choice

Which operator tests equality in a SQL Server WHERE clause?

Q12
Single Choice

What does this query return?

SQL Code
SELECT * FROM Sales WHERE Amount > 1000;
Q13
Single Choice

Which predicate correctly finds rows where EndDate has no value?

Q14
Single Choice

Which values match WHERE Score BETWEEN 60 AND 80?

Q15
Single Choice

Which predicate finds names that start with A?

Q16
Single Choice

Which operator requires both conditions to be TRUE?

Q17
Single Choice

Which operator checks whether a value matches any value in a list?

Q18
Single Choice

Which predicate tests whether a correlated subquery returns at least one row?

Q19
Single Choice

Which keyword negates a search condition?

Q20
Single Choice

Which SQL Server function returns the number of characters in a string for use in a predicate?

Q21
Multiple Choice

Which statements can use a WHERE clause to limit rows?

Q22
Multiple Choice

Which are valid comparison operators in T-SQL predicates?

Q23
Multiple Choice

Which predicates correctly test NULL values?

Q24
Multiple Choice

Which are logical operators supported in a SQL Server WHERE condition?

Q25
Multiple Choice

Which wildcards can be used by SQL Server LIKE patterns?

Q26
Multiple Choice

Which predicates are generally able to seek directly on a suitable index?

Q27
Multiple Choice

Which are valid ways to use a subquery in a WHERE clause?

Q28
Multiple Choice

Which conditions select active rows whose EndDate is NULL?

Q29
Multiple Choice

Which predicates select values outside the inclusive range 10 through 20?

Q30
Multiple Choice

Which predicates require an active row to be in either the West or East region?