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

Explain the working of foreign key?

541


How does a covering index work?

524


How can we link a sql database to an existing android app?

546


how can you create an empty table from an existing table? : Sql dba

656


How can triggers be used for the table auditing?

592






What does rownum mean in sql?

551


What are the different set operators available in sql?

563


Does execute immediate commit?

695


what are the disadvantages of mysql? : Sql dba

568


How do I count rows in sql?

555


What is a crud api?

493


Is inner join same as self join?

576


What is the need of merge statement?

547


Will truncate release space?

514


What is a mutating table and a constraining table?

567