JAva题,如下图怎么做
1个回答
2017-11-03 · 【免费测试,验证码5秒必达】
北京巴卜技术有限公司
北京巴卜技术有限公司(以下简称巴卜)是具备国际水准的移动商务平台技术和应用方案提供商。自成立以来,巴卜始终 致力于为国内外企业提供具备国际技术水准的移动商务平台及运营服务。
向TA提问
关注
展开全部
1.1) select max(e.sal), min(e.sal) from emp e group by e.deptno;1.2) select max(e.sal), min(e.sal) from emp e where e.job = 'CLERK' group by e.deptno;1.3) select e.ename, e,deptno, e.sal from emp order by e.deptno desc , e.sal asc2.1) select s.stuid, s.name, sum(s.core) total_score from stuscore s group by s.stuid ,s.name order by total_score desc2.2) select s1.subject, s2.* from stuscore s1 join (select s.stuid, s.name, max(s.score) max_score from stuscore s group by s.stuid, s.name) s2 on s1.score = s2.max_score and s1.stuid = s2.stuid2.3) select avg(s.score) avgscore ,s.stuid,s.name from stuscore s group by s.stuid,s.name2.4) select *from (SELECT s.name,s.stuid,s.subject,s.score,row_number() OVER(PARTITION BY s.subject ORDER BY s.score desc) e FROM stuscore s) t where e <= 2
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询