update [dbo].[student]
set marks = case
when marks > 60 then 'Good'
when marks >= 40 and marks <= 60 then 'Okay'
when marks < 40 then 'Fail' end
--where marks in (60, 40)
select * from student
I already have a table with some sample data. When I execute this I get: Error converting data type varchar to numeric.