How to display a column horizontally

Hello

I want to display the result set in a single line

Select * from emp where rownum < = 3

Jim Clark Adams

instead of display as

Jim
Clark
Adams

Thank you.

If your version of Oracle 10 g then try this one

select replace(wm_concat(EMP_NM),',',' ') from emp where rownum <=3

Kind regards
Kaila Mahesh

Tags: Database

Similar Questions

  • How to display 5 columns with blank lines

    Hi Experts,

    I need to display in the dashboard column 5 with blank lines. After download in excel I need to see the same thing as the names in columns 5 and that it must contain empty lines. It is one of the requirements of the user.

    So how do you achieve...

    Thanks in advance,
    Sitbon

    Next to all the answers of your son, you should see a button 'OK' or 'useful '.
    Helpful = 5pts,.
    Correct = 10pts

    :-)

    Check the sticky thred:
    http://forums.Oracle.com/forums/Ann.jspa?annID=939

    Welcome to the community, pls help others!

  • How to display a column with a representation of the image color in Windows Explorer on Windows 7?

    OK, here's my situation...

    I have a directory with 300 + JPG images in it; I'm hoping to use some (if not all) of these images for a project.

    However, the project has very specific requirements for the image dimensions, resolution, and a representation of the colors; So I need to evaluate the supplied images to validate if they are all in line with these requirements.

    If I right click on an individual image and choose Properties - then click on details, I can see the image information such as:

    • Dimensions,
    • horizontal resolution,
    • vertical resolution, and
    • color representation.

    ... which would be perfect if I had only 1 or 2 images to cross; but with more than 300 images, it becomes cumbersome.

    So: I put the "Détails" view folder and added columns for dimensions, horizontal and vertical resolution resolution.

    This helps my cause, because I can then sort the directory... and quickly see if the images are too small, too big, or unacceptable resolution.

    However, I have not found a way to add a column for the representation of colors.

    Is it possible to add a column for the representation of colors?

    Hello

    Unfortunately there is no other option to define the representation of colors in Windows Explorer. If you want to provide feedback about it, then check out the link:

    Windows 7 comments

  • How to display all pages horizontally

    Hello everyone,

    I do now have a presentation with 4-5 Pages of A0, and I'd like to see 2 of them on everything horizontally on the same height and not only in a row. How can I do? Here is a screenshot with an explanation of what I want.Untitled-3.jpg

    Thanks in advance!

    This is called and 'island '.

    Go to the Pages panel, click the drop-down menu on the upper right of the Panel and DESELECT "Document pages to Shuffle"

    Add a new page, click and drag the page icon to the left until you see a '[' support and the page will be attached to the 1st page.

    Repeat until you have the desired number of pages.

    Click on the image above to see an enlarged version.

  • How to display dynamic columns, published by vo.addDynamicAttribute in jspx?

    Hello

    I met the problem when add cloumn programmatically and display it on the screen. Here are my steps:

    1 put implement Application Module, add an init() method and expose it to the customer.
    2. in the init() method, get VO target and use vo.addDynamicAttribute ("Addition3"). Then it iterate using row.setAttribute ("Addition3", Math.random ()). Add init() for liaison page and invoke it. (it is invoked)
    3 al ' jspx, use #{row.bindings.Addition3.inputValue}

    Error occurs when eval expression EL in step 3.
    javax.el.PropertyNotFoundException: unattainable target, "Addition3" returns null.

    Addition3 is not defined in XML, but dynamically. I guess that's important.

    Anyone know how to view on jspx?

    The new attribute is not in the definition of the page. You must use a technique where people called "dynamic table".

    http://deepakcs.blogspot.com/2012/06/display-ADF-dynamic-table-based-on.html

  • How to display the columns in the wise line in pl sql

    I have to display some values of constant wise online using the select statement. For example, after query both display constant columnwise...

    Select 83: 42 double;

    83 42

    I want to display the rowwise... IE

    Constant
    83
    42

    I can create temporary table and add them then ask, but there should be a way I can use double to show the values line wise. something like

    Select a double where an in (83, 42)

    Appreciate your help.

    Hello

    Here's one way:

    SELECT     column_value    AS cnstnt
    FROM     TABLE (sys.odcinumberlist (83, 42))
    ;
    

    CONSTANT is a keyword from Oracle is not a very good name for your own column.

  • How to display a column of values in a line?

    Select * from tab1;

    Jagan

    Siva

    RAMU

    Samba

    But my requirement is to display the output as same as below...

    Jagan, Siva, Ramu, Samba...

    Someone help me please...

    It displays error;

    Keyword not found where expected.

    So I used under request he got success...

    Select

    RTrim (xmlagg (xmlelement (e, name |))) ') .extract ('/ / text()'), ',') name of Tab1;

    output:

    Jagan, Siva, Ramu, Samba

  • How to display a column value with chain?

    Hai all,

    SELECT name from TAB1;

    output: JAGAN

    RAMU

    SIVA

    Sanjay

    So my requirement is to display these data in string (with single Quotes) as below.

    "JAGAN.

    "ROBERT."

    'SHIVA '.

    "Sanjay".

    I would like to know if it is possible...

    Thanks in advance...

    Jagadekara Reddy

    Hello

    Yes it is possible, try this

    SELECT "' | name | " '

    OF TAB1;

  • How to display several column data in an Oracle SQL column

    Hello

    I have the table t1 and (a1, a2, a3) are columns

    I have this request

    Select the t1 a1
    Union
    Select a2 from t1
    Union
    Select a2 from t1

    This is the variant is unpivot, but he calls internal table several times.

    I wish in a way, where I want the same output, but the appeal of the table only once.

    Thank you
    Sunil Jena

    Published by: 990324 on March 15, 2013 04:46

    Assuming a1, a2 and a3 have the same data type:

    select  case lvl
              when 1 then a1
              when 2 then a2
              else a3
            end
      from  t1,
            (
             select  level lvl
               from  dual
               connect by level <= 3
            )
    /
    

    SY.

  • How to display the column single line with function of nested groups

    SQL > select deptno, Max (sum (sal)) SalSum
    2 of PEM
    3 Group of deptno;
    Select deptno, Max (sum (sal)) SalSum
    *
    ERROR on line 1:
    ORA-00937: not a single group group function

    Can you please help me to get the Max (sum (sal)) with Deptno...

    Or:

    select max(deptno) KEEP (DENSE_RANK LAST ORDER BY SalSum) deptno,
    max(SalSum) from  (
      select deptno,sum(sal) SalSum
      from emp
      group by deptno
    );
    
  • How to display the results of a MySql query in multiple columns?

    Hi, I know how to display PHP/MySq

    l of the results in a single column, but I'm really stuck to show

    Ying the results of several columns in DW CS4.

    Can someone help me with a code example? I'm new to php/mysql. Thank you

    Are you asking how to rotate the query results? Do a search for a horizontal loop. If this isn't what you're asking, please provide more details.

  • How to display the comments column in Windows Media Player 12?

    WMP12 - how to display the comments column?

    I want to see the Cooments ColonneB in my WMP ads, but it is not giving me the option.

    Hello

    1. What do you mean exactly by the column comments?
    2. are you referring to in Windows Media Player?

    If you want to change the information contained in the Windows Media Player, you can follow the steps in this article.

    http://Windows.Microsoft.com/en-us/Windows7/add-or-edit-media-information-in-Windows-Media-Player

  • How to display a value of transitional attribute to column db entity column?

    Mr President

    Help me at the time 12.2.1 jdev.

    How to display a value of transitional attribute to column db entity column?

    I have the requirement to indicate a value of transitional attribute column in the column db entity for some reason any.

    Any body can help as my show in the picture below

    The StAmt is a transitional column and a column db of the entity.

    tworows.png

    Any body can help please. !

    Concerning

    This means that the amount to be the attribute will always has the same value of the transient attribute? If so, why do you want the amount attribute the transient attribute is sufficient?

    Anyway, if you want to get attribute data in attribute transitional amounts you can open class ViewRowImpl and appearing in the getter or amount, you can get the value in the transitional as attribute:

      public Number getAmount()
      {
        return getTransientAttribute();
        //return (Number) getAttributeInternal(AMOUNT);
      }
    

    in this case, the quantity data store database will not appear on the table it will still get the transitional attribute data and it's meaningless.

  • How to display the horizontal output?

    Hi all

    I need to display the output horizontally in my report.

    Output current:

    col1 col2

    -----    ------

    1          a

    2          b

    3          c

    Power required:

    col1: 1 2 3

    col2: a, b and c

    I can do it by the layout of rdf, but I need to do it by XML editor or a publisher of BI, because I need excel output only.

    So any ideas?

    I can do it by the layout of rdf, but I need to do it by XML editor or a publisher of BI, because I need excel output only.

    you do this by rdf as report page or data model for the bi publisher model?

    so first case is rotate the data in rdf by sql and then put in model

    also the pivot in rtf http://docs.oracle.com/cd/E28280_01/bi.1111/e22254/create_rft_bldr.htm#BIPRD2681

    also the columns Dynamics http://docs.oracle.com/cd/E28280_01/bi.1111/e22254/create_rtf_tmpl.htm#BIPRD2546

  • How to not display the column heading in the table view?

    I don't want to display the column header in the table display, how I can make?

    If you use JavaFX 8, you can use the following text in an external style sheet:

    .table-view .column-header-background {
      -fx-pref-height : 0 ;
    }
    

    If you use JavaFX 2.2, the - fx-pref-height attribute is not available in css, so I think that you must resort to a search:

    final Region tableHeader = (Region)table.lookup(".column-header-background");
        tableHeader.setPrefHeight(0);
    

    As always, I am obliged to point out that I don't really like the research. Sometimes, they seem to be the only way, however.

Maybe you are looking for