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
Use LISTAGG function. Refer here for more in detail. Try like this,
LISTAGG
SELECT listagg(emp_id,',') WITHIN GROUP(ORDER BY emp_id) t FROM employees;