Created
August 2, 2021 18:33
Пример SQL запроса
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
first_name, | |
salary, | |
CASE | |
WHEN salary < 5000 THEN 'Low' | |
WHEN salary >= 5000 AND salary < 10000 THEN 'Normal' | |
WHEN salary >= 10000 THEN 'High' | |
ELSE 'Unknown' | |
END | |
salary_level | |
FROM employees; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment