I\'m trying to display all the employee id\'s
i need the result like
emp_id 10,11,12,13,14,15..,...
when tried
For SQL try
SELECT GROUP_CONCAT(emp_id) as emp_id FROM employees;
Working demo at http://sqlfiddle.com/#!2/90dd2/1
For Oracle
SELECT LISTAGG(emp_id,',') WITHIN GROUP(ORDER BY emp_id) as emp_id FROM employees;
demo at http://sqlfiddle.com/#!4/af004/9