Machine-translated by Google. Questions are authored in English.
Top

Discussion

The condition in a WHERE clause can refer to only one value.

  • A.True
  • B.False

Answer: B

Correct answer: False

A WHERE condition can refer to as many values as needed. IN takes a list, BETWEEN takes two bounds, and AND and OR combine any number of conditions across any number of columns.

A condition may also refer to values it does not name, through a subquery: WHERE id IN (SELECT id FROM other) tests against a whole set computed at run time. The single-value comparison is merely the simplest case, not the limit of the clause.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.