0% found this document useful (0 votes)
83 views

Comparison Operators: (Answer All Questions in This Section)

The document discusses comparison operators that can be used in the WHERE clause of SQL statements. It lists the main comparison operators as =, >, <, <=, >=, <>, BETWEEN, IN, LIKE, and IS NULL. It then provides examples of WHERE clauses using some of these operators and tests the reader's understanding by posing questions with correct answer choices.

Uploaded by

monica_lufo
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views

Comparison Operators: (Answer All Questions in This Section)

The document discusses comparison operators that can be used in the WHERE clause of SQL statements. It lists the main comparison operators as =, >, <, <=, >=, <>, BETWEEN, IN, LIKE, and IS NULL. It then provides examples of WHERE clauses using some of these operators and tests the reader's understanding by posing questions with correct answer choices.

Uploaded by

monica_lufo
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Comparison Operators

(Answer all questions in this section)

1.Which of the following are examples of comparison operators used in


the WHERE clause? Mark for Review
(1) Points

=, >, <, <=, >=, <>


between ___ and ___
in (..,..,.. )
like
is null
All of the above (*)

Correct

2.Which of the following WHERE clauses would not select the number
10? Mark for Review
(1) Points

WHERE hours BETWEEN 10 AND 20


WHERE hours <= 10
WHERE hours <>10 (*)
WHERE hours IN (8,9,10)

Correct

3.When using the "LIKE" operator, the % and _ symbols can be used to
do a pattern-matching, wild card search. True or False? Mark for Review
(1) Points

True (*)
False

Correct

4.Which statement would select salaries that are greater than or equal
to 2500 and less than or equal to 3500? Choose two correct answers. Mark for Review
(1) Points

(Choose all correct answers)

WHERE salary >= 2500 AND salary <= 3500 (*)


WHERE salary <=2500 AND salary >= 3500
WHERE salary BETWEEN 2500 AND 3500 (*)
WHERE salary BETWEEN 3500 AND 2500

Correct

You might also like