Turn the line of what follows in Oracle11gr2

Hello

My problem is to turn the line on the column of this table:

name_job id_job id_high_job

Job1 1000 1010

Job2 1001 1010

Job3 1010 1020

Job4 1003 1001

.......

......

I'm looking for this resualt

name_job_level1 name_job_level2 name_job_level3...

job3                              job1                        -

job3                              job2                         job4

How to do this? can someone help me please?

I tried to pivot, but gave no result theis!

Thanks in advance

with

data in the form of

(select "job1" name_job, id_job 1000, 1010 id_high_job Union double all the)

Select "job2", 1001, 1010 Union double all the

Select "job3", 1010, 1020 Union double all the

Select 'job4', 1003, 1001 Union double all the

Select "job5", 1002, 1010 Union double all the

Select 'job6', 1004, 1002 Union double all the

Select "job7", 1006, 1004 Union double all the

Select 'job8', 1008, 1002 double

)

Select substr (path, 1, instr(path,',',1,1) - 1) job_lev_1,.

substr (Path, InStr(Path,',',1,1) + 1, instr(path,',',1,2) - instr(path,',',1,1) - 1) job_lev_2,.

substr (Path, InStr(Path,',',1,2) + 1, instr(path,',',1,3) - instr(path,',',1,2) - 1) job_lev_3,.

substr (Path, InStr(Path,',',1,3) + 1, instr(path,',',1,4) - instr(path,',',1,3) - 1) job_lev_4

from (select substr (sys_connect_by_path (name_job, ','), 2) |) ',' path

from the data

where connect_by_isleaf = 1

Start with name_job = 'job3.

Connect prior id_job = id_high_job

)

JOB_LEV_1 JOB_LEV_2 JOB_LEV_3 JOB_LEV_4
Job3 Job1 - -
Job3 Job2 Job4 -
Job3 JOB5 Job6 job7
Job3 JOB5 job8 -

Concerning

Etbin

Tags: Database

Similar Questions

  • Program vi to turn the lines Testpanels HSDIO

    Hello everyone,

    I have a question about HSDIO testpanels in MAX. There is an option to MAX to generate the data in various forms of digital data:

    RAMP / TOGGLE LINES / THOSE WORKS / MARKET ZEROS / RANDOM.

    And most of the examples using HSDIO generate data using the method of the RAMP. I tried to look but I couldn't find other methods of data generation. I really need the program to generate the data with the method of the LINES of the ROCKER. Have tried to use the block express gen, but does not help me either. In my view, it should not be a complex built in the program, but somehow I don't see what I would do to generate this signal. I need two channels to generate the same signals as in the picture above.

    I tried to build the ramp and a channel that connects with another a channel not used, but the voltage has dropped and so I don't want to use this method. Later, I may add delay to a channel, but I think I can get something of an example of NOR (dynamic generation with a delay of data).

    Kind regards

    Yan.

    Hi Yan,

    To get the clock frequency of 1/4 on two channels, it would look like this:

    00

    00

    11

    11

    00

    00

    11

    11

    You oversample data and then you get two channels with frequency of output 1/4 clock rate.

  • Turn the line in column

    Hi all

    Select * from t_temp;

    col1 col2 col3

    ---------------------------------

    100a 1

    101 b 2

    103 c 3

    Output sought,

    a           b         c

    -----------------------

    1           2          3

    Kind regards

    Fame

    SQL > create or replace procedure my_pivot (p_cursor in the sys_refcursor

    2)

    3 as

    long 4 l_query: = "select";

    5 I have COMP: = 0;

    6 start

    7 x in (select c2

    8 of t_temp

    9             )

    10 loop

    11 i: = i + 1;

    12 if i = 1

    13. can

    14 l_query: = l_query | Replace (q': max (decode(c2,'$X$',c3)) $X$ |', ' $X$ ')

    15, dbms_assert.simple_sql_name (x.c2)

    16                                    );

    17 other

    18 l_query: = l_query | Replace (q'|, max (decode(c2,'$X$',c3)) $X$ |', ' $X$ ')

    19, dbms_assert.simple_sql_name (x.c2)

    20                                    );

    21 end if;

    22 end loop;

    23-

    24 l_query: = l_query | 'from t_temp order by c1;

    25-

    26 dbms_output.put_line (l_query);

    27 open p_cursor for l_query;

    28-

    29 end;

    30.

    Created procedure.

    SQL > var refcursor rc

    SQL > define autoprint on

    SQL > exec my_pivot(:rc);

    Select max (decode(c2,'a',c3)) a, max (decode ('b', c2, c3)) b, max (decode(c2,'c',c3)) from t_temp by c1 c

    PL/SQL procedure successfully completed.

    A          B          C

    ---------- ---------- ----------

    1          2          3

    1 selected line.

    Borrowed from the example of: ask Tom & quot; PivotChart & quot;

  • Frame 12 chart: hold SHIFT used to keep the line straight, now what?

    It was when you draw a line in Framemaker that now the SHIFT key while dragging the line would keep the straight line. This no longer works in Frame 12. What is the right way to get a straight line?

    Thanks in advance.

    It seems that talk us about different things. I thought that you were concerened about the change of the line after what he drew.

    To create a new vertical/horizontal line, select the line tool (cursor becomes +), then hold down the SHIFT key. Now, click where you want to start (while holding down the SHIFT key), and then drag the line to where you want to end (i.e. your last approach). At this stage it will still be the selection and display the handles at both ends.

    For editing existing line, ctrl + click on the line. The handles will appear. Hold down the SHIFT key and then click the e handle you want to change. You can move horizontally or vertically along the imaginary axis passing through the selected breakpoint when you use the shift key modifier.

  • Cannot be joined lines when using the line Segment tool

    So unfortunately, I've updated to the latest version of Illustrator Cc (V19.2.1). And to my horror, I can no longer draw a line (with the line segment tool) then draw another line, coming from the previous those anchor point. When I try to shoot immediately. He's trying to turn the line rather than create a line joining... anyway to change that or am I stuck with it?

    (Also, I use windows currently..)

    http://Tinypic.com/player.php?v=iqc0mc & s = 9 #. Vr5gifJ95hE

    I don't know if you can say/see/see in the video, but here's the process that I'm following departure using the line-drawing the line-> > segment trying to draw a line from that anchor point (and that is the question, when I'm doing it automatically, it assumes I want to transform the line)-> changes to the tool selection and clicks on the line to deselect-> goes back and finishes object, repeating the process.

    Help me please... I'm desperate...

    It is these new life forms, a few disadvantages too with the rectangle tool, ellipse etc. tool.

    to go back to the old behavior

    Object > shape > expand the form, do a deed for him, or do what I did a hotkey (Windows 7).

    Edit > keyboard shortcuts > Menu commands > object > shape > expand the form , then in the first box to the right click in it, select and press a key on the keyboard, I choose F9, OK and name.

    It's an extra step, having to have a finger on the mouse and the other on the keyboard for each line. but I can't think otherwise.

  • Everytime I turn on my Mac Java says he needs to install the message says "to use the line tool java command, you must install a JDK.  Click on "more information visit the java developer kit download site."  I followed all these steps and downloSoftware.

    The message says "to use the line tool java command, you must install a JDK.  Click on "more information visit the java developer kit download site."  I followed all these steps and downloaded the correct software update, but still getting the message.

    A

    If you have installed the plugin of Facebook video appeal and you no longer want to use it, you can remove it as follows.

    1 back up all data.

    2. open the library folder in your home folder by holding down the option key and selecting

    Go ▹ library

    in the Finder menu bar.

    3. place these items in the library folder to the Trash:

    LaunchAgents/com.facebook.videochat.name.plist

    Support/Facebook app

    Here the name represents the name of your Facebook.

    4 log off or restart the computer, and then empty the trash.

    B

    If you do not use this plugin, or any other software (for example, some Adobe products), which depends on Java, install the Java runtime distributed by Apple.

    C

    If you do not have the Facebook plugin and you don't want to install Java, please ask for further instructions.

  • Search for the string in the string table and see the following value in the line

    Hi, I'm new I have LV and I do a Vi that read worksheet values and generates 2d channels of the same spreadsheet table. For the moment everything I need is a function that find specyfic string in this table and show the next value in a line. As:

    Table:

    a; b
    c; d
    f; g

    example: find the 'c '.

    VI shoud show "d".

    Concerning

    Not a bad homework problem.  Do it with pencil and paper.  Write your table and pretend you're the computer.  What you want to do (step by step)?  What questions do you have?

    Now that the translation a bit to computers.  You mentioned that the data is in an array of strings.  What structures (LabVIEW) work with tables?  [Do you know how to work with tables?  [Otherwise, review some of LabVIEW Tutorial material - see top right of the first page of the Forum].  What do you know about channels?  What questions you need to ask questions on the channels?  What do you know about string functions?

    Watch these things in some LabVIEW code, 'feed' some data and see what he does.  If it seems to do things "unexplained", you can try to look at the block diagram to run by turning the performance highlight (and if you don't know what that means, use the help of LabVIEW and see the tutorials).

    Bob Schor

  • I'm not able to decrease the width of the line below 1 Pt, while I have no problem, it increases. What should I do?

    I'm not able to decrease the width of the line below 1 Pt, while I have no problem, it increases. What should I do?

    Turn off snap to the Pixelgrid:

  • How to draw a line (with the line segment tool) then draw another line, from those previous anchor point. When I try immediately draw another line on the other anchor lines it try to turn instead.

    I'm following a course of basic fundamental illustrator on Lynda. The video of "draw straight lines" is troubling me. They draw a line with the line segment and then draw another line coming out the anchor point at an angle.

    Here's where it is troubling me - when I try to drag a line to the anchor point trying to transform the first line, I drew. (the line cursor turns into a selection tool) I can't draw another line connecting the first.

    Advice would be great because it's driving crazy me.

    See you soon,.
    Kyle

    Yes, it is irritating. You must clear the previous line first. If you want to make sure that both ends are perfectly aligned, start by turning on the guides. If you want two lines to be part of the same way, you should use the tool pen instead.

  • I saved a Web page to my files but, when I opened the file all I see are the lines of comand what hurts?

    I saved a web page to a filebut when I open it all I see are numbers and symbols as comand lines not what I was looking at the Web page what is the problem?

    How can you save the file or web page?

    What file type is selected in the selector window "Save as" file?

  • I downloaded the new 9. ? version said to my PC to run it. It said to restart my system which will come into force. Yes, I did. Whenever I try to access the line, it gives me the message that I have to restart my system. What should I do?

    I downloaded the new 9. ? version said to my PC to run it. It said to restart my system which will come into force. Yes, I did. Whenever I try to access the line, it gives me the message that I have to restart my system. What should I do?

    Do a cleaning (re) install and delete the folder of the program Firefox (C:\Program Files\Mozilla Firefox\).

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox, if possible.

    • Do NOT remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data in the profile folder.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • I continue to receive reports of Norton that a download with the pre RadioWMPCoreGecko fix. followed by various suffixes like "19.dll" or 05, 06 08 etc... takes a lot of computer resources. Can you explain what it is, as I understand it, it is called by F

    I continue to receive Norton Security reports that a download with the pre RadioWMPCoreGecko fix. followed by various suffixes like dll '19.dll' or 05.Marco, 06 08 etc... takes a lot of computer resources. Can you explain what it is, as I understand it, it is called by Firefox.

    This DLL can be part of a Firefox extension.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remem

    Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remember is this another open window and asked me to choose 'something' (an icon or banner or?), I thought I have to click on an element (I guess I should read all clearly). Firefox updated to 3.6.4, but it also inserted some sort of what might be called a banner? But it does cover only partially the half right of my 3 toolbars at the top of the Firefox window. It cannot be used to something else because it's just a mess of colors and unknowns, except for what looks like a 'top' and what I recognize as an icon of Firefox (but only partially visible)! Now, what he does, it's partly hide this part all the toolbars and they are difficult to read and to do to turn this 'thing' impossible to understand, if I keep to? I can't find in any case to remove it or use it? But since the icon of Firefox is about it, I think you need to know what it is and how trash. I'm sorry for this accident caused my my inattention, but I'm not much of a computer person - HELP! Thanks for any help. Judi

    This has happened

    Each time Firefox opened

    Today is Thrsday June 24, 2010

    The only thing I can imagine: it's a character.

    Tools-> Add-ons-> Themes
    Here should be the character (light theme)
    and a button 'delete '.

    Click on it (delete button), and he (Persona, this mixture of colors) should disappear instantly.

    This help you?

  • My e-mail is important my emails when I turn it on but then offline. Need my password back on doctor connection and stay on the line until I turn it off. Process is repeated on the switching across. How can I make my email stay online?

    My e-mail is important my emails when I turn it on but then offline. Need my password back on doctor connection and stay on the line until I turn it off. Process is repeated on the switching across. How can I make my email stay online?

    Hi jsteveh,

    Thank you for using communities Support from Apple.

    I understand that the mailbox of your Mac becomes offline at random times.  I suggest the mail connection doctor to see if there is any problem with your computer to communicate with the mail running server.

    Use Mail connection doctor

    Take care.

  • HP8620: Turns the printer off line

    Hello

    I have a HP8620 printer that leads me in the corners.

    Continues to go the printer offline, he worked for weeks without a problem, then it turns off the line almost every day.

    I have the latest updates for windows and also the latest driver for the printer.

    I stopped the printer spooler and reworded some times it works, I have blowen away the driver for the printer that so many times I'm on it.

    The printer was working wireless and I had the problem so it is now connected via a Lan cable and same problem.

    Can someone please help the printer was not cheap when I brought. He becomes very close to go in the trash and buy a different brand printer.

    ac1961

    @AC1961,

    Were you able to define an IP static, as recommended in the document to the printer in offline mode? If it's still going offline that I suggest to call our technical support at www.hp.com/contacthp/. If you do not live in the United States / Canada region, please click the link below to get help from your region number. http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    Thank you

Maybe you are looking for

  • Cannot download Windows Server 2012

    Hello guys,. I can't download Windows Server R2 2012 free trial ISO file from the link below http://TechNet.Microsoft.com/en-us/evalcenter/dn205286.aspx I select the ISO file and then start now. A pop window seems to save in, I chose a large number o

  • I bought a refurbished computer and I am unable to activate the validation code is wrong.

    Original title : I bought a computer refurbished with xp on it and a 'new' disk xp. When I need to reinstall, I couldn't activate it because of not being able to see the code. I now have new glasses, but he says that the validation code is wrong. I t

  • Unable to get the extension when the sample memory running

    Hello I downloaded the sample memory application at the bottom of the link: https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10/memory Copied the ext (example.memory) to the path below: C:\Program search in Motion\BlackBerry 10 SDK

  • Problem of CA with NAC

    Hello I use internal CA (Microsoft Win 2003 CA) to provide SSL certificates to the NAC. The problem is that end users are still getting warnings on connection to the network in the same way as when I used the Perfigo certificate. I tried to install t

  • Download the photos from the memory of the card under Windows 7.

    Windows XP was great to upload photos, even if it would freeze sometimes. Vista was awful. Windows 7 is very confused. When I insert a cd - r to copy photos from memory cards, he asked on behalf of the cd If you want to, I don't have so I just click