Possible Duplicate:
how to query multiple row data in single column in oracle?
my table structure is given bellow
deptid ename
------ ------
10 CLARK,KING,MILLER
20 ADAMS,FORD,JONES,SCOTT,SMITH
but i want the output sould be like
deptid ename
----------------
10 CLARK,
KING,
MILLER
------------------
20 ADAMS,
FORD,
JONES,
SCOTT,
SMITH
please tell me how to do it in sql