1个回答
展开全部
1、select stu.sid,name,nvl(y.mc,0) classname from stu,(select sid s,max(class) mc
from stu_class group by sid) y where stu.sid=s;
2、select stu.sid,name,nvl(y.mc,0) classname from stu,(select sid s,max(class) mc
from stu_class group by sid) y where stu.sid=s(+) order by stu.sid;
from stu_class group by sid) y where stu.sid=s;
2、select stu.sid,name,nvl(y.mc,0) classname from stu,(select sid s,max(class) mc
from stu_class group by sid) y where stu.sid=s(+) order by stu.sid;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询