How concat? Help, please

Hi all

I want to display enames on same line for deptno 10. Help, please

SELECT ENAME FROM EMP WHERE DEPTNO = 10;


Output voltage

ENAME
--------------------------
CLARK, KING, MILLER

Hello

Use this...

COLUMN employees FORMAT A50

SELECT deptno, wm_concat(ename) AS employees
FROM   emp where deptno=10
GROUP BY deptno;

    DEPTNO EMPLOYEES
---------- --------------------------------------------------
        10 CLARK,KING,MILLER

 

-------------------------------------------------------------------------------------
There are many examples available here

http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php

Thank you
Prakash P

Published by: prakash on October 6, 2011 22:03

Tags: Database

Similar Questions

Maybe you are looking for

  • I can not scan documents in the form of documents

    I have a HP Deskjet F4280 on my Windows 7 laptop.  I need to scan a document, but all the analysis in the form of images.  I don't get that picture options in the file Type drop down even if I have Documents in the profile.  Any suggestions?

  • Don't arrive at the microsoft store to update to 8.1

    I can not connect to the microsoft store to update to 8.1.  He always tells me that I'm not connected, but I am.  I even used an ethernet to connect.  He still does not?  Help.

  • MovieMaker 6 crash in VISTA

    I spent several months to make a film of many DVDs.  I was almost finished, when he started crashing.  Whenever I try to open this movie.  I had not changed anything on my computer.  I do not have NERO.  Under XP, someone said that you are limited to

  • R820 critical e-mail alerts

    Hello We have about 40 x R820 and the r720 in our fleet and have noticed that recently that no email alerts don't arise when a critical alert is logged on a system for example problem or power supply loss memory etc.. When looking under Alerts we ent

  • Cannot open the word with long name file

    Hello I have two word file and when I want open, I have "The too long file name" and I can't open and edit. What do I do? Thank you