select name, sal,
case when sal >= 4000 then 'Good'
when sal <= 2000 then 'Bad'
else 'Ok'
end as Status
from tablename
2023-12-13 21:19:27
select name, sal,
case when sal >= 4000 then 'Good'
when sal <= 2000 then 'Bad'
else 'Ok'
end as Status
from tablename