//returns the concatenated string from multiple rows into a single string SELECT emp_id, emp_fname, emp_lname, dept_id, GROUP_CONCAT(designation) as "designation" FROM employee group by emp_id;