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

Discussion

A CASE SQL statement is which of the following?

  • A.A way to establish an IF-THEN-ELSE in SQL.
  • B.A way to establish a loop in SQL.
  • C.A way to establish a data definition in SQL.
  • D.All of the above.

Answer: A

Correct answer: A way to establish an IF-THEN-ELSE in SQL.

CASE evaluates conditions in order and yields the value belonging to the first that holds, which is a conditional expression rather than a statement. It can therefore appear anywhere a value is expected - in a select list, in an ORDER BY, or inside an aggregate.

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

Post your comment

Please log in or register to post a comment.