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 :
abdul@eetmx.com
joseph@eetmx.com
ranjith@eetmx.com
Expected Output :
abdul@eetmx.com,joseph@eetmx.com,ranjith@eetmx.com