1
Reply

Q. Oracle Query to Join two tables, If there are multiple values in single cell that we need put "on" condition. ?

Nagi Setty A

Nagi Setty A

Oct 28, 2015
568
0

    Oracle QueryQuery to Join two tables, If there are multiple values in single cell that we need put "on" condition.select rtrim(xmlagg (xmlelement (e, RelationshipName|| ',')).extract ('//text()'), ',') from Relationship WHERE ID IN ( SELECT distinct val FROM Person reln1 ,XMLTABLE('/ol/li/text()'PASSING xmltype(' <ol> <li> ' || REPLACE (reln1.RelationshipId, ',', ' </li> <li> ') || ' </li> </ol> ') COLUMNS val varchar2(10) PATH '/'))

    Nagi Setty A
    October 28, 2015
    0