Help with rows and columns

Hi,
Is it posibble in oracle to display the columns in row format?
eg:
Select* from emp;
col1 col2 col3
1 mat 22
The output should be
1
mat
22
this is to be done ina single query..
Plz help..
thanks for ur help..
mathew

SQL> With t As
  2    (Select 'A;B;C' c
  3    From dual),
  4    t2 As
  5    (Select ';'||c||';' c From t)
  6    Select substr(c, instr(c,';',1,Level)+1,
  7                      INSTR(c, ';', 1, Level+1)- INSTR (c, ';', 1, Level)- 1) "Str"
  8    From t2
  9    Connect By Level < length(c) - length(Replace(c,';'))
10  /
Str
A
B
C

Similar Messages

  • How to create table with rows and columns in the layout mode?

    One of my friends advised me to develop my whole site on the
    layout mode as its better than the standard as he says
    but I couldnot make an ordinary table with rows and columns
    in th layout mode
    is there any one who can tell me how to?
    thanx alot

    Your friend is obviously not a reliable source of HTML
    information.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mr.Ghost" <[email protected]> wrote in
    message
    news:f060vi$npp$[email protected]..
    > One of my friends advised me to develop my whole site on
    the layout mode
    > as its
    > better than the standard as he says
    > but I couldnot make an ordinary table with rows and
    columns in th layout
    > mode
    > is there any one who can tell me how to?
    > thanx alot
    >

  • How to display 2 dimensional data. i.e with rows and columns?

    Hi,
    I want to know how to display multiple, variable
    rows and columns that are got from the database through
    queries in forms.
    (i,e. a Matrix of Values,something similar to an Excel Spreadsheet).
    Is there a component in forms similar to JTABLE that is
    available in Java through which MULTIPLE, VARIABLE
    rows and columns can be displayed ?.
    I am not using a base table since this data is got thru
    a number of packages and procedures that are used in
    Loops.
    NOTE : I am using forms 6i.
    Thanks
    Sharath.

    I've heard Grant mention adding a Grid component to the Forms toolbox. From the context I would guess this is not yet even under development, so it's not going to be available anytime soon. And not for 6i.
    Sorry, APC

  • Help with divs and columns please?

    Hello all,
    I'm quite new to dreamweaver and having problems. I am
    designing a site with 3 columns (left for nav, middle for main
    content and right for offers & advertising etc.) I am using
    tables within the divs to organise content and I have aligned the
    divs left and in all sorts of other ways to try and get them to
    look like 3 columns but no matter what I do the right column always
    ends up underneath the middle column. What am I doing wrong?
    Thanks in advance

    Faux columns. I don't like javascript solutions.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Jay Jhabrix" <[email protected]> wrote in message
    news:ga92ts$23c$[email protected]..
    > Murray,
    >
    > BTW... am trying to create a 3 column site... staying
    away from tables...
    > :)
    >
    > As i see it i have two choices:
    > 1/ Go for a 'faux column" kind of solution
    > 2/ PVII's javascript driven answer
    >
    > Ideally, i'd like to do it purely in CSS but with
    minimal hacks. I will be
    > using tables but don't want them to be a feature of the
    design... purely
    > for content. Background white. But want to have four
    borders... left,
    > right and the two central ones. Fixed width. Any
    suggestions, links?
    >
    > (One menu is definitely PMM.)
    >
    > Cheers,
    >
    > JJ
    >
    > "Murray *ACE*" <[email protected]>
    wrote in message
    > news:ga920g$tv$[email protected]..
    >>I can take it....
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >> ==================
    >>
    >>
    >> "Jay Jhabrix" <[email protected]> wrote in
    message
    >> news:ga91so$ph$[email protected]..
    >>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>> news:ga8vu7$rpa$[email protected]..
    >>>
    >>>> Heh - no. It was the perceived status of the
    OP.
    >>>
    >>> That's what i kind of figured... but couldn't
    resist the dig ;->
    >>>
    >>
    >
    >

  • How to display a table with rows and columns?

    Hi All,
    I am new to IPhone development,
    In my app user has to pick date from control, I had used UIDatePicker but user cannot pick year from that. so I wanted to write my own calendar view i.e A table with 6x7 cells using UITable.
    code snippet or any information on this will be appreciated.
    Thanks,
    Vashek

    I don't believe that the UITable on the iPhone supports mutiple columns. It is just a list of table cells. Each cell can have its own subset of controls (views) and I suppose this may be one way to give you what you want. But it seems like it would almost be better just to make your own table -- a view that contains the grid of subviews -- and lay that out in the parent view.
    I haven't had any experience with the UIDatePicker yet, though I can see it doesn't support year ... Why not build your own custom picker? It seems that would be a lot less hassle, and maybe more intuitive for the user, than building a full calendar view, especially if what you wanted initially was a picker anyway.
    Edit: I feel bad ... I didn't read through all the modes of UIDatePicker -- it does have a mode that supports year (UIDatePickerModeDate).
    Kevin
    Message was edited by: JediRunner

  • How to create table with rows and columns in HTMLB

    Hello All,
    Can any one tell me how to create table in HTMLB?
    Regards,
    Lisa.

    Look at the sample BSP application SBSPEXT_HTMLB
    also you can look at the below Blog..
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    <i>*Reward each useful answer</i>
    Raja T

  • Dynamic Positioning of Objects in a Grid (rows and columns) with AS3 Tutorial

    The topic of a dynamic positioning of objects in a right grid (rows and columns) comes up often so I decided to post an AS3 solution here:
    http://flashascript.wordpress.com/2010/12/25/arranging-objects-into-2d-dynamic-grid-with-a ctionscript-3/

    Hard to tell from your description but this might help:
    http://dtptools.com/product.asp?id=atid
    Bob

  • Reading each value from spreadshee​t file with delay (multiple rows and columns)

    Hi,
    a) I want to read EACH VALUE from a spreadsheet file having multiple rows and columns WITH DELAY. I am attaching my VI and sample datalog file for reference (tempsensor.txt).I need to do so because as soon as I read put ON the Sensor button on front panel, LV reads all the values at one go. I need the values for each temperature to be displayed after a delay.
    b) Secondly, I would like to read another file containing the state of four antennas (deployed:1; undeployed:0). I am logging state of each antenna in each column of the file(magnet.txt) I need to have four LEDS on front panel to display state of the antennas. I dont know what I have done for antennas in my VI is right or wrong. I guess thats rhe wrong way to approach the problem. Please help!!!(column1: Antenna1 state ; Column2:Antenna2 state.. and so..on..)
    Any help would be greatly appreciated!!
    Thanks in advance,
    Ratnesh
    FYI: The first column in my datalog file represents timestamp(number of seconds elapsed), second column: reading for temperature sensor 1, third column: reading for temperature senosr 2, and so on. I am using approx. 11 temperature sensors.
    Also, I have generated the log files for the reference purpose only. They do not represent the actual values. They are far away from actual values.
    Attachments:
    01032005.zip ‏30 KB

    Look at this modified version of your VI. After looking at it, I determined that a shift reggister was not required in this case.
    Lynn
    Attachments:
    MultiSensors.2.vi ‏85 KB

  • Report with multiple dimensions in Row and Column with EvEXP

    Hi
    We are currently running BPC 7.0 SP3 and try to create the report(or schedule) with more 2 x 2 dimensions in the row and column.
    e.g.
    row dimension : Outer row is Entity, Inner row is Account
    column dimension : Outer column is Time, Inner row is Category
    We created the report with  2 x 2 dimensions like above e.g. with EvEXP and EvNXP, NOT EvDRE
    based on default dynamic template:Template13.xlt(Nested Row, 2 x 1 dimensions defined by EvEXP and EvNXP formula).
    However, when expanding the dimension with double click these dimensions or change CV of the report with  2 x 2 dimensions defined by EvEXP and EvNXP formula,
    error occurs on EvEXP and EvNXP formula and can't retrieve the result correctly.
    [Question]
    Can't we create the report with more 2 x 2 dimensions in the row and column using EvEXP and EvNXP function ?
    We understand that we can make the report with more 2 x 2 dimensions in the row and column if using EvDRE.
    Thank You in advance
    Kenya

    Thank you for your advice.
    I understand that we should use EvDRE when creating the report with multiple dimension in the row/column because EvEXP have some erros, poor performance, etc.
    Then, we have two questions.
    1)
    >plus they had some errors in the designs.
    what kind of errors they have as an example?
    2)
    >If you must build the EVEXP and EVNXP, I would suggest building the template from scratch
    We built the simple template with just 2 x 2 dimension from scratch.
    But this report doesn't work well when double-click the dimension or changing CV...
    Would you please check the following template?
    <https://sapmats-de.sap-ag.de/download/download.cgi?id=RCZE1ME4YSORY3DCDO4NNMANZLBL1L5ZBUOB2F71YVNVS8XDJW>
    It would be greatly appreciated if you could give me your advice for the template.
    Thank you again
    And my best regards,
    Kenya

  • Help! Inserting a 1-D comment array into a 2-D string array at specified row AND column

    Hello everyone,
    I am writing a 2-D string array to excel and i need a way to add comments to my file like this:  
    SLAM    NAME    G Level    Comments
    1              RALF         26               
    1              RALF         26
    1              RALF         26
    1              RALF         26
    For some reason, i cannot specify a row AND column to write because: 
    When i use replace array subset it only replaces 1 element at my index. 
    When i use replace array subset with a loop, it creates empty spaces until it reaches the end of the array it is replacing.
    When i use Insert into array: i cannot wire 2 inputs for row and column.  
    In my complete VI i will need to write from row 1-1001, a different comment from 2-2002, a different comment from 3-3003, etc until a stop condition is met so i need to figure out how to do this programatically and not have it replace any elements outside of the range or it will override previous commetns. 
    I am at a loss of what to do. Any and all suggestions are greatly appreciated. 
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    array.vi ‏13 KB

    Hi proph,
    I made a small subtile change to yur VI and now it replaces all values of the 4th column…
    THINK DATAFLOW!
    Use shift registers when you need to propagate values from one loop iteration to the next!
    USE/LEARN DEBUGGING TECHNIQUES!
    There are tools like probes and highlight to understand your VI execution and to find problems…
    Go through all those free online courses offered by NI!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    array.vit ‏12 KB

  • Rows and Columns Help

    Previously in AI9 when I wanted to modify a matrix I had created using Rows and Columns, I would select the cells of the matrix and then click on Rows and Columns.  Now I have CS4 and the documentation says I should be able to do the same thing using Area Type Options.  However, when I select the cells of a matrix that I created in AI9, Area Type Options is ghosted out.  How do I modify this matrix?

    I would copy and paste in front before I try this.
    Then select the text that is place the text cursor in a the text frame you want to split or select it with a selection tool.
    then see if the Type>Area Text Options are available. They should be.
    If not that means they are object paths not Area Text.
    Click the Frame with the Area Text tool to make it a Area Text Frame now the options should be available.
    The way to tell if these are object paths is to select one and go to the Object >Path>Split into Grid and if that is available then it is an object path.
    The text engine and this feature has changed in AI CS1 and that is probably the cause for the translation to get a bit messed up.

  • Need help setting up rows and columns for a shop page in DW

    I sell my books and design tees on my site. I'm trying to set up a new page for a new site.
    For some reason I can't get my products in a row and column fashion.
    I have a attachment file so you can see what I actually mean. thanks to all that will give advice.

    Use a table for your product catalog.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Retreiving Point location with JTable row and column

    If I have the row and column in a JTable (in a JPanel), how do I get the Point location offset from the location Point of the JTable or JPanel ?

    I think that this may do it.
    Point objPoint = new Point( objTable_.getLocation() );
    int intRow = objTable_.getSelectedRow();
    int intColumn = objTable_.getSelectedColumn();
    int intColumnWidth = objTable_.getColumnModel().getColumn( intColumn ).getWidth();
    int intColumnMargin = objTable_.getColumnModel().getColumnMargin();
    int x = (int) objPoint.getX() + ( (intColumn+1) * intColumnWidth) );
    // perhaps * (intColumnWidth + intColumnMargin)
    int y = (int) objPoint.getY() + ( (intRow+1) * objTable_.getRowHeight());
    // perhaps * (objTable_.getRowHeight() + objTable_.getRowMargin())

  • Lock rows and columns header in a table view report. It is possible?

    hi,
    I have a Dashboard that displays a report in "Table View" with many rows and columns.
    Is it possible to set a lock on the rows and columns like Excel?
    This would have blocked such headers that contain attributes and measures and to browse the report (eg with a scroll bar) had always viewed the headers.
    Can you help me?
    Thanks

    hi,
    please go through this discussion
    Re: SCROLL BAR to FREZZ HEADERS
    thanks,
    saichand.v

  • Hi, how can i break the value for a row and column once i have converted the image to the array?????​??

    Hi, I would like to know how can i break the value for a row and column once i have converted the image to the array. I wanted to make some modification on the element of the array at a certain position. how can i do that?
    At the moment (as per attachhment), the value of the new row and column will be inserted by the user. But now, I want to do some coding that will automatically insert the new value of the row and the column ( I will use the formula node for the programming). But the question now, I don't know how to split the row and the column. Is it the value of i in the 'for loop'? I've  tried to link the 'i' to the input of the 'replace subset array icon' , but i'm unable to do it as i got some error.
    Please help me!
    For your information, I'm using LABView 7.0.

    Hi,
    Thanks for your reply.Sorry for the confusion.
    I manage to change the array element by changing the row and column value. But, what i want is to allow the program to change the array element at a specified row and column value, where the new value is generated automatically by the program.
    Atatched is the diagram. I've detailed out the program . you may refer to the comments in the formula node. There are 2 arrays going into the loop. If a >3, then the program will switch to b, where if b =0, then the program will check on the value of the next element which is in the same row with b but in the next column. But if b =45, another set of checking will be done at a dufferent value of row and column.
    I hope that I have made the problem clear. Sorry if it is still confusing.
    Hope you can help me. Thank you!!!!
    Attachments:
    arrayrowncolumn2.JPG ‏64 KB

Maybe you are looking for