sql group_concat(colname SEPARATOR '?')
Emp_details_test has four columns EmpId,Gender,EmailId and DeptId.User has to write a sql query to dervie another column called Email_list to display all emailid concatenated with semicolon associated with each DEPT ID as shown below in ouput table. i:/p EMPID GENDER EMAILID DeptId 1001 M YYY@gmail.com 104 1002 M ZZ@gmail.com 103 1003 F AAAA@gmail.com 102 1004 F PP@gmail.com 104 1005 M CCCC@gmail.com 101 1006 M EEE@gmail.com 100 1007 F FGH@gmail.com 102 1008 M YYY@gmail.com 102 1009 F RAm@gmail.com 100