最新回答 / 慕田峪9362115
你外层加的关键字rownum 相当于又使用了伪劣而不是普通列 肯定又不能用> >=符号了啊 select e2.r,empno,ename,salfrom (select rownum r,empno,ename,sal from (select empno,ename,sal from emp order by sal desc ) e1 where rownum<=8) e2where e2.r >4
2018-08-29
最新回答 / 呜呜呜呜喵王
select p.ci_id,max(stu_name) as STU_NAMEfrom (select c.ci_id,wm_concat(s.stu_name) over(partition BY c.stu_ids order by s.stu_id) as stu_namefrom pm_ci c,pm_stu swhere instr(c.stu_ids,s.stu_id) > 0) p group by p.ci_id查询出来后有排序效果的..
2018-07-15
最新回答 / 慕斯卡6169147
主要是因为实际应用中会有很多的表。如事实表,维度表。分析数据是会涉及到从众多表中取值,因此会出现很复杂的SQL。小点的需求几百行起步,大点的需求上万行都是正常的。
2018-07-07