2

Query:

select o.candidateid 
from onboardingcandidates o, candidatedetails c 
where o.candidateid=c.candidateid 
    and o.JOININGSTATUS='0091' 
    and to_date(o.joiningdate)=to_date(sysdate+5);

Output:

cand1
cand2
cand3
cand62

Required Output:

cand1, cand2, cand3, cand62
4

1 回答 1

6

use LISTAGG

SELECT LISTAGG(o.candidateid) WITHIN GROUP () .....
于 2012-11-01T16:46:36.983 回答