Hello,
I have string "Oracle & Oracle", when run thru the following statement I am getting & as not full string,
how to avoid this and to get the right values
SQL> select col1 from t;
COL1
----------------------------------------------------------------------------------------------------
SQL & SQL
Test & Test
Oracle & Oracle
SQL> select
2 RTRIM (XMLAGG (XMLELEMENT (E,XMLATTRIBUTES (col1|| ',' AS "Seg"))ORDER BY col1 ASC).EXTRACT ('./E[not(@Seg = preceding-sibling::E/@Seg)]/@Seg'),',') col1
3 from t;
COL1
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Oracle & Oracle,SQL & SQL,Test & Test
The expected output is
COL1
-------------------------------------
Oracle & Oracle,SQL & SQL,Test & Test
Any help would be greatly appreciated
Thanks,