SELECT first_name, last_name, hire_date, CASE (2000 - CAST(strftime('%Y',hire_date) AS INTEGER)) WHEN 1 THEN '1 year' WHEN 3 THEN '3 years' WHEN 5 THEN '5 years' WHEN 10 THEN '10 years' WHEN 15 THEN '15 years' WHEN 20 THEN '20 years' WHEN 25 THEN '25 years' WHEN 30 THEN '30 years' END aniversary FROM employees ORDER BY first_name;
SELECT first_name, last_name, CASE WHEN salary < 3000 THEN 'Low' WHEN salary >= 3000 AND salary <= 5000 THEN 'Average' WHEN salary > 5000 THEN 'High' END evaluation FROM employees;