FULL code
Example Code
SELECT CASE WHEN (<column_value> <= <value>) THEN
WHEN (<column_value> <= <value>) THEN
ELSE <value>
FROM <table_name>;
SELECT line_number,
CASE WHEN (line_number < 10) THEN 'Ones'
WHEN (line_number < 100) THEN 'Tens'
WHEN (line_number < 1000) THEN 'Hundreds'
ELSE 'Thousands'
END RESULT_SET
FROM airplanes;
댓글 없음:
댓글 쓰기