Below is the teradata code i want to convert to snowflake
select XMLAGG (XMLELEMENT (n, col1
|| CHR (10))
ORDER BY num
).EXTRACT ('//text()').getClobVal () AS abc
tried as below but not working. am new to both oracle and snowflake please help me with this
extract(listagg (parse_xml('<n> col1|| CHR (10) <n>')),'//text()')