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

Answer Posted / kavitha nedigunta

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

works in 10g

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is number function in sql?

525


how can we destroy the cookie? : Sql dba

555


Why do we need sharding?

525


how to concatenate two character strings? : Sql dba

550


What is online transaction processing (oltp)?

600






What is the difference between inner join and outer join?

528


what are the type of locks ? : Sql dba

526


How to get unique records from a table?

521


How do I partition in sql?

536


How is sql used in oracle?

578


What are the set operators in sql?

551


how to return query output in html format? : Sql dba

649


what is query cache in mysql? : Sql dba

575


What is the advantage of nosql?

525


Explain clause in sql?

561