I want to get set of mail Ids but in my Query this is not getting parsed properly as single row.Please hlep me to solve this.
SELECT LISTAGG ( EMAIL) WITHIN GROUP (ORDER BY EMAIL) EMAIL1 FROM USER
WHERE ID IN (107) GROUP BY EMAIL
Current Output :
[email protected]
[email protected]
[email protected]
Expected Output :
[email protected],[email protected],[email protected]