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
SELECT LISTAGG(emp_id, ',') WITHIN GROUP (ORDER BY emp_id) AS ID FROM employees GROUP BY emp_id;
I'm getting error
ORA-00923: FROM keyword not found where expected
where is the problem here?