select temp.ciId, wm_concat(temp.stuName)
from (select pc.ci_id ciId,
instr(pc.stu_ids, ps.stu_id),
ps.stu_name stuName
from pm_ci pc, pm_stu ps
where instr(pc.stu_ids, ps.stu_id)<0
order by 1,2) temp group by .
from (select pc.ci_id ciId,
instr(pc.stu_ids, ps.stu_id),
ps.stu_name stuName
from pm_ci pc, pm_stu ps
where instr(pc.stu_ids, ps.stu_id)<0
order by 1,2) temp group by .
2017-12-10
select c.ci_id 選課表序號,wm_concat(s.stu_name) 學(xué)生姓名
from pm_ci c, pm_stu s
where instr(c.stu_ids,s.stu_id) >0
group by c.ci_id
from pm_ci c, pm_stu s
where instr(c.stu_ids,s.stu_id) >0
group by c.ci_id
2017-11-27
select a.ci_id, wm_concat(b.stu_name) as stu_name
from pn_ci a,pm_stu b
where instr(a.stu_ids,b.stu_id)>0
group by a.ci_id
from pn_ci a,pm_stu b
where instr(a.stu_ids,b.stu_id)>0
group by a.ci_id
2017-11-03
select t.cou_id,max(t.stu_name)
from
(
select c.cou_id, wm_concat(s.stu_name) over(partition by c.cou_id order by s.stu_id) stu_name
from course c, student s
where instr(c.stu_id, s.stu_id) > 0
)t
group by t.cou_id
from
(
select c.cou_id, wm_concat(s.stu_name) over(partition by c.cou_id order by s.stu_id) stu_name
from course c, student s
where instr(c.stu_id, s.stu_id) > 0
)t
group by t.cou_id
2017-10-27
為什么這篇課程 前幾章 都是抱怨老師講的不好的, 到這里 都是夸老師 講的特別好呢? 感覺有點矛盾!!!
2017-10-16