Skip to content

Instantly share code, notes, and snippets.

@sazakharov
Created August 2, 2021 18:33
Пример SQL запроса
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