How can I display several rows of a line

Hello

I have a table called temp_probabaility and contain 2 colomns (id1, path) values as below,

Id1 path
3; 2,4,6
4; 1; 2; 3; 5
5; 1; 2; 3; 4; 5
I need to convert the values to be as below.

Id1 path
3 2
3 4
3 6
4 1
4 2
4 3
4 5
....

Please any help?

Published by: user11309581 on May 13, 2011 16:13

Published by: user11309581 on May 13, 2011 16:16

Published by: user11309581 on May 13, 2011 16:18

Here's a way...

SQL> ed
Wrote file afiedt.buf

  1  with x as (select 3 as id1, ';2;4;6' as path from dual union all
  2             select 4, ';1;2;3;5' from dual union all
  3             select 5, ';1;2;3;4;5' from dual)
  4  --
  5  -- end of test data
  6  --
  7  select id1, regexp_substr(path,'[^;]+',1,rn) as path
  8  from   x cross join (select rownum rn
  9                       from dual
 10                       connect by rownum <= (select max(length(regexp_replace(path,'[^;]'))) from x))
 11  where regexp_substr(path,'[^;]+',1,rn) is not null
 12* order by 1,2
SQL> /

       ID1 PATH
---------- ----------
         3 2
         3 4
         3 6
         4 1
         4 2
         4 3
         4 5
         5 1
         5 2
         5 3
         5 4
         5 5

12 rows selected.

Tags: Database

Similar Questions

  • How can I display several rows using Horizonatal and vertical field Manager

    Hello

    can someone tell me how I can layout my screen using HorizonatalFieldManager and VerticalFieldManager.

    I want to display the image and text as below:

    Image1 Text1

    Image2 Text2

    image3 Text3

    I have try several times but she can throw the exception of unacaught,.

    can u give me some examples like him.

    I also store image by default when the url does not contain any image

    It works with FlowField but it see as below:

    image1 image2 Text2 Text1

    image3, image4 Text4 Text3

    I don't want to, I want to show as first mention.

    now I work at bb jde 4.6 and I want to support 4.6 and later

    (1) are you IllegalStateException? It's normal if you try to manipulate anything on the screen of a non-event thread stack. If it is another exception, display the details here.

    (2) for your layout, you need a separate HFM for each pair of text-image. Like this:

    VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL ...);
    for (i = 0; i < length; ++i) {
      HorizontalFieldManager hfm = new HorizontalFieldManager();
      hfm.add(new Label(text[i]));
      hfm.add(new BitmapField(image[i]));
      vfm.add(hfm);
    }
    add(vfm);
    

    If you add all of this to a screen with "no argument" constructor (there VERTICAL_SCROLL by default), you can ignore the optimization of resources and add your HFMs directly on-screen.

  • How can I display a grid of horizontal alignment in Pages.

    How can I display a grid of horizontal alignment in pages. I can show a vertical, but there seems to be no option to show a horizontal. I use El Capitan with maps, version 5.6.2 Pages.

    Pages v5.6.2 has horizontal and vertical guides, but no grid. The vertical guide is enabled in the menu Pages: preferences: sovereign.

    With the two visible leaders after menu display: display the rule, place the cursor of the black needle on the edge of the respective sovereign and then click. When you see the following icon, drag the new guide in your document. Several vertical and horizontal guides may be present. The view menu has an element of Guides to hide menu or erased.

    • Indicator of horizontal ruler guide
    • Indicator of vertical ruler guide
  • How can I change several download Sierra systems

    How can I change several download Sierra systems?  I have a Mac mini end of 2012 running El Capitan, over a mid-2010 Mac mini and MacBook Pro mid-2010 the two race Yosemite with limit of bandwidth on my internet connection and want to update all three systems in one download.  Is the process that apply with Yosemite and El Capitan (ie. Copy the Setup program to another location before you run it on the download system) still the way forward?  Thank you.

    You can do this or DiskMaker X allows to create a key to install it.

    (145170)

  • How can I display all recipients of an e-mail when I open the email

    I don't know if this is a duplicate.

    How can I display all recipients of an e-mail when I open the email in Thunderbird. What setting do I change this effect. I don't see that myself as a recipient not anyone else the email is addressed to or even any cc

    'View'-> headers-> all the.

  • How can I delete several images in the Finder at the same time

    How can I delete several images in the Finder all at once rather than one by one

    Click on an image and the successive images to press the SHIFT, or command key by clicking on the image to add it to the selection. Then Ctrl-click (tap two fingers) on any icon and choose to put in the trash. If the icons are in an easily selectable column or online, you can click on the window that contain, and then drag around them for a multiple selection.

  • How can I display an email address without opening the email?

    How can I display an email address without opening the email?  I want to know who sent me spam so I can block it without opening the email.

    There is no danger at the opening of the long spam email that you do not click on any links in the email.

  • How can I delete several clips at once from the timeline

    How can I delete several clips at once from the timeline?

    Thanks, Dan

    Shift-click or command-click to select if they are contiguous. Then press the delete key.

    Or select them and use the keyboard shortcut command + X.

    Or select them in the Index of the Timeline and use the key DELETE or command + X.

    Russ

  • How can I display the time of the data stored in a file using labview?

    How can I display the time of the data stored in a file using labview?

    Hi Matt,

    I think that we will need a little more information as to how you capture the data, what data you capture, etc.

    If you capture a waveform, is to extract the time data waveform which includes the t0 and dt values, so you can understand the time stamp of a specific data point as in the image below.

  • How can I display a variable evolution in a Subvi on the face before of the main vi as the Subvi is excuting

    In the attached document the vi on the right is sub to the vi on the left. On the Subvi on the right of the variable "playing field" is continuously updated on the façade of the Sub - VI as the loop 'for' is executed, but only the last value of the variable is updated in the table main before vi which is what is expected. My question is how can I display the evolution of the value of 'Playing field' on the main façade of vi that the loop 'for' in the Sub - VI is running?

    Thank you.

    I don't have the drivers you are using. But here's an example of how update an indicator of a Subvi. To create the reference control in the Subvi, select control refnum in refnum palette and drag a numeric (or other) on the refnum control.

    VI the appellant

    Subvi

  • How can I create several rectangles with a draw rect.vi

    How can I create several rectangles with a fire rect.vi? Thank you

    Like this...

    -DP

  • How can I display the printable two than non-printable ascii characters from a device and display it in a text box?

    Hello

    My send UUT to my computer via serial port of printable and non-printable ascii characters. The question is:

    (1) how to display all characters in a text box.

    (2) how can I display all these characters in hexadecimal format and display it in a text box?

    Thank you.

    Robert

    Text boxes can actually receive channels with printable and non-printable characters: nonprinting characters will be represented with a small square. For example, consider this code:

    tank has [512], msg [512];

    Create a string with embedded unprintable characters

    sprintf (one, "Hello: %c %c %c %c % c: World!", 1, 2, 3, 4, 5);

    Pass the string to the text box "such what."

    ResetTextBox (bH [1], b1_n, a);

    Format a hexadecimal representation of the string and add it to the text box

    FMT (msg, '\n%*d[zb1r16w2p0j1]', strlen (a), a);
    SetCtrlVal (Bosnia and Herzegovina [1], b1_n, msg);

    The result is as follows: the first line is the string passed "such what", what follows is the hexadecimal representation.

  • How can I register several OCX files at the same time

    How can I register several OCX files at the same time. OCX depending on the application files are stored in a network location, IE. R:\HR\whatever\whatever\*. OCX instead of manually record each ocx file, I would be with a simple batch file or an automated script. Anyone have any good ideas?

    Hi James,

    The Microsoft Answers community focuses on the context of use. Please join the professional community of COMPUTING in following the link MSDN forum

    http://social.msdn.Microsoft.com/forums/en-us/categories

  • How can I delete several photos in my photo folder once

    How can I delete several photos at once in my photo file?

    Hello

    • Click on the first image you want to delete
    • Select other images to be deleted by pressing Ctrl and clicking on them
    • Click with the right button on a selected image to remove and then click on remove

    Tricky

  • How can I store several sentences and insert without typing?

    How can I store several sentences and insert without typing?

    http://www.colorpilot.com/TypePilot.html

Maybe you are looking for

  • Satellite P200 PSPBGU: where to find the drivers for windows xp ethernet

    Where can I find drivers for windows xp ethernet? I tried many drivers, but no installed.Help pleasePS Everest says that the ethernet card is - realtek rtl8139/810 x fast ethernet card

  • certificate of ssl wildcard PX4 - 300 d

    Hello is it possible to install a third party wildcard ssl certificate? Thank you

  • Car power adapter for C710-2490

    Problems to find a power adapter DC for my Chromebook C710-2490, which can connect on her cigarette lighter of my car. Can only find for other models of the C710, but not mine. Is the same as that used on the C710-2847 or 2478 - the power adapter? Th

  • For Hp 1150 wireless printing

    I have a hp 1150, connected to the Airport extreme. All our other macs print fine wireless, except a new mac mini. On the Mac Mini I get a message saying "get the Apple software", then message is not available. The Mac mini has also another, identica

  • WRT54GS V7.50.6 - WIFI problem

    Hello.I have problem with router WRT54GS V7.50.6.First of all.Active DHCP.I have Off SSIDI have a personal WPA keyI allowed that MAC (and added mac from my computer)I don't see on the DHCP Tables all unknown host.There is no Firmware more recent I kn