aggregation of distinct string in sql
Hi,
I required one query that will display distinct record of string
Like if we have table dept with section id and employee
dept_id sec_id employee
1 1 Raj
1 1 shyam
1 1 arjun
1 2 Raj
2 3 vivek
2 3 kumar
2 4 vivek
2 4 kumar
I need output like this
dept_id employee unique name with aggregation of string
1 Raj,shyam,arjun
2 vievk,kumar
I can display all row as aggregate with LISTAGG but it is taking duplicate value as well.
Please help me.
Thank you in advance
Ram