Which of the following is not a legal statement used Ii CASE?

Which of the following is not a legal statement used Ii CASE?
A. WHEN 1 =>
B. WHEN 1 TO 3 =>
C. WHEN 1|3 =>
D. WHEN 1 THEN
 
Answer: d
Explanation: The CASE statement can either use a single value or a discrete range followed by the => operator. Apart from this, | is called the or operator which means there are two values of choices are used. In option d THEN is used instead of => which is illegal.
 

Tìm kiếm

Back
Top