how to get enames with comma seperated values by deptwise
on emp table?

Answer Posted / gj

SELECT deptno, LIST_AGG(ename) AS EMP_STRING
FROM emp
GROUP BY deptno;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between delete, truncate and drop command?

547


What are hotfixes and patches?

527


How to create a menu in sqlplus or pl/sql?

611


Are subqueries better than joins?

527


What is not in sql?

496






How to add new employee details in an employee_details table with the following details

643


What is the most restrictive isolation level? : Transact sql

554


Do we need to create index on primary key?

463


how to use case expression? : Sql dba

549


What will you get by the cursor attribute sql%notfound?

590


What is a nested table in word?

529


What is online transaction processing (oltp)?

600


How can you know that statistics should be updated?

601


What is procedure explain with example?

538


what are tables and fields? : Sql dba

577