成绩大于60时的显示及格,小于60时的显示不及格

论坛 期权论坛 脚本     
匿名网站用户   2020-12-20 18:41   99   0
学号 学生姓名 课程名称 成绩

select a.studentid "学 号",studentname "学生姓名",
subjectname "课程名称",
decode(sign(mark-60),-1,'不及格','及格') "成 绩"
from student a,subject b,grade c
where a.studentid = c.studentid
and b.subjectid = c.subjectid
2.
null的处理
nvl(aa,0);
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:1136255
帖子:227251
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP