You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

LISTAGG Function Not working

Summary:

Hi Team,

Please help me debugging or optimize the below query.

Content (required):

The result:


The result I want:


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

SELECT

ican.candidate_number

,IRB.REQUISITION_NUMBER

,hqv.QUESTION_TEXT Question

,(case when HRA.LONG_TEXT is not null then LISTAGG(HRA.LONG_TEXT, '; ')

when HRA.LONG_TEXT is null AND haqrv.ANSWER_TEXT is null then 'No Answer'

else haqrv.ANSWER_TEXT end) Answer

FROM

IRC_CANDIDATES ican

,IRC_SUBMISSIONS isub

,HRQ_QSTNR_PARTICIPANTS hqp

,HRQ_QSTNR_PCPT_RESPONSES_V hqprv

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!