select Name,Marks,
case
when Marks=’65’ then Roll_num=’113′
when Marks=’68’ then Roll_num=’114′
when Marks=’71’ then Roll_num=’115′
else Roll_num
end
from student;
I Want replace Marks column with new values. in this code i am not getting marks column replace values.
2
Answers
maybe so
SELECT
Name,
Marks,
CASE
when Marks=’65’ then ‘113’
when Marks=’68’ then ‘114’
when Marks=’71’ then ‘115’
ELSE Roll_num
END FROM student;