declare @Course table (姓名 varchar(10),分数 int)
insert into @Course
select '小明', 50
union all select '小红',100
select 姓名,case when 分数<60 then '不及格' when 分数<75 and 分数>=60 then '及格' when 分数<100 and 分数>=75 then '优秀' when 分数=100 then '满分' end as 等级 from @Course