Complete the code to return 'Positive' if the number is greater than zero.
SELECT CASE WHEN number [1] 0 THEN 'Positive' ELSE 'Non-positive' END AS result FROM numbers;
The condition checks if the number is greater than zero to label it as 'Positive'.
Complete the code to return 'Negative' if the number is less than zero.
SELECT CASE WHEN number [1] 0 THEN 'Negative' ELSE 'Non-negative' END AS result FROM numbers;
The condition checks if the number is less than zero to label it as 'Negative'.
Fix the error in the CASE statement to handle zero correctly.
SELECT CASE WHEN number > 0 THEN 'Positive' WHEN number [1] 0 THEN 'Zero' ELSE 'Negative' END AS result FROM numbers;
The condition 'number = 0' correctly checks if the number is zero.
Fill both blanks to complete the CASE statement that labels numbers as 'Positive', 'Zero', or 'Negative'.
SELECT CASE WHEN number [1] 0 THEN 'Positive' WHEN number [2] 0 THEN 'Zero' ELSE 'Negative' END AS result FROM numbers;
The first condition checks if the number is greater than zero, the second checks if it equals zero.
Fill all three blanks to create a CASE statement that returns 'Positive', 'Zero', or 'Negative' based on the number.
SELECT CASE WHEN number [1] 0 THEN 'Positive' WHEN number [2] 0 THEN 'Zero' ELSE [3] END AS result FROM numbers;
The CASE checks if number is greater than zero, equals zero, or else labels it 'Negative'.