select c.ci_id, WMSYS.Wm_Concat(s.stu_name)
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;
select count(*) Total,
sum(decode(extract(year from hiredate),'1980',1,0)) "1980",
sum(decode(extract(year from hiredate),'1981',1,0)) "1981",
sum(decode(extract(year from hiredate),'1982',1,0)) "1982",
......
from emp
sum(decode(extract(year from hiredate),'1980',1,0)) "1980",
sum(decode(extract(year from hiredate),'1981',1,0)) "1981",
sum(decode(extract(year from hiredate),'1982',1,0)) "1982",
......
from emp