Hi Raja & Dieter .. Thanks a lot for valuable input.
here my requirement is like :<Input Set table data>
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2
1/1/2014 12345 07-098787 0, ?,1
1/1/2014 12345 07-098787 2,4,5
1/1/2014 12345 07-098787 1,2,3
And the expected output is :
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2,0, ?,4,5,3
My above query is working fine when record count is very less .. but in case of more than 500 records , its showing spool space issue .
I have tried same kind of query with simple rank & concat funtion, but i was not able to remove duplicate in output record set , below is the output of rank & concat funtion query :
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2,0,?,1,2,4,5,1,2,3
While as per requirement no duplicate allowed in the resiliation column.
can you please help me to in this scenario ?
Thanks a lot in advance.
Hi Raja & Dieter .. Thanks a lot for valuable input.
here my requirement is like :<Input Set table data>
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2
1/1/2014 12345 07-098787 0, ?,1
1/1/2014 12345 07-098787 2,4,5
1/1/2014 12345 07-098787 1,2,3
And the expected output is :
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2,0, ?,4,5,3
My above query is working fine when record count is very less .. but in case of more than 500 records , its showing spool space issue .
I have tried same kind of query with simple rank & concat funtion, but i was not able to remove duplicate in output record set , below is the output of rank & concat funtion query :
DAY_ID CONTENT_ID LINE_ID Resiliation
1/1/2014 12345 07-098787 1,2,0,?,1,2,4,5,1,2,3
While as per requirement no duplicate allowed in the resiliation column.
can you please help me to in this scenario ?
Thanks a lot in advance.