Connect by  hierarchical no work  what is wrong

Hi
I have a table as
SQL> WITH T_TREE AS (
  2   SELECT 5 CD_TYPE_PARENT,
  3          1 CD_EC_PARENT ,
  4          2997660 CD_PARENT,
  5          5 CD_TYPE_CHILD,
  6          2 CD_EC_CHILD,
  7          12239615  CD_CHILD,
  8          1 ID_TYPE_RELATION,
  9          200701  NM_CYCLE ,
10          TO_NUMBER(NULL) NM_CYCLE_END  FROM DUAL
11   UNION
12    SELECT  5,1,2997660,5,4,10509356,1,200701,TO_NUMBER(NULL) FROM DUAL
13   UNION
14    SELECT   5,2,12239615,5,5,13392131,1,200701,TO_NUMBER(NULL) FROM DUAL
15   UNION
16    SELECT  5,2,12239615,5,6, 4701040,1,200701,TO_NUMBER(NULL) FROM DUAL
17   UNION
18      SELECT  5,4,10509356,5,7,10812806,1,200701,TO_NUMBER(NULL)  FROM DUAL
19    UNION
20    SELECT   5,4,10509356,5,8, 7769790,1,200701,TO_NUMBER(NULL)   FROM DUAL)
21    select * from T_TREE;
CD_TYPE_PARENT CD_EC_PARENT  CD_PARENT CD_TYPE_CHILD CD_EC_CHILD   CD_CHILD ID_TYPE_RELATION   NM_CYCLE NM_CYCLE_END
             5            1    2997660             5           2   12239615                1     200701
             5            1    2997660             5           4   10509356                1     200701
             5            2   12239615             5           5   13392131                1     200701
             5            2   12239615             5           6    4701040                1     200701
             5            4   10509356             5           7   10812806                1     200701
             5            4   10509356             5           8    7769790                1     200701
whe I tried query below, did not work
select  t1.CD_PARENT, t1.cd_CHILD, level -1
from T_TREE t1
sTART WITH CD_parent = 1
connect by prior  t1.cd_child =  t1.cd_parent
order siblings by t1.CD_parent

Sorry I am donkey
select  CD_EC_PARENT,CD_EC_CHILD
from T_TREE t1
sTART WITH CD_EC_PARENT  = 1
connect by prior  t1.CD_EC_CHILD =  t1.CD_EC_PARENT
order siblings by t1.CD_EC_PARENT
  Now work fine
sorry
Message was edited by:
muttleychess

Similar Messages

  • I can't send/receive any message/call but I can connect to the internet. What's wrong?

    I can't send/receive any message/call but I can connect to the internet. What's wrong?

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • It says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    I just got my new iPad Mini2, and when I choose "sign in with your apple ID", it says that "there was a problem connecting to the server". What's wrong with this, and how can I deal with this problem?

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • I want to play candy crush on Facebook and it says i need latest version of adobe flash player, i downloaded it and it still doesn't work. i uninstalled and re installed and still not working. what is wrong? what do i need to do,

    i want to play candy crush on Facebook and it says i need latest version of adobe flash player, i downloaded it and it still doesn't work. i uninstalled and re installed and still not working. what is wrong? what do i need to do,

  • My iphoto doesn't work, it just keeps loading and never works. what is wrong and how do i get it to load?

    my iphoto doesn't work, it just keeps loading and never works. what is wrong and how do i get it to load?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • After i use 4.3.3 for iphone 4. the notification for facebook and yahoo do not work. what is wrong? anyone can help?

    after i use 4.3.3 for iphone 4. the notification for facebook and yahoo do not work. what is wrong? anyone can help?

    I am also on my forth hard drive on the same model.
    When I unpacked the computer, the hard drive did not include OS X either. Actually, it was completely blank. Did not even have a partition table! I have also had random problems with the machine not charging.
    I have replaced the drive myself with an SSD after figuring the Apple Certified technicians were incompetent. Now even the SSD is starting to fail
    I have bought an HP laptop and setup Ubuntu on it. Hope it turns out better than my previous four various Mac models. All have had various repeating hardware issues that Apple Certified technicians have been unable or unwilling to correct.

  • The left half of my screen isn't working, what is wrong?

    The left half of my screen is not working, what's wrong?

    Have you performed a reset? Tap and hold the Home button and the On/Off button for approximately 10-15 seconds, until the Apple logo appears. Release both buttons and await restart.

  • My FaceTime is active but it does not connect. Any one know what is wrong with it or how to solve the problem?

    My FaceTime is active but it does not connect. Any one know what is wrong with it or how to solve the problem?

    Please sign out of FaceTime and sign back in. If there's no change, log out or restart the computer and try again.

  • At the moment I can use my apple Id on my iPod touch to connect to iCloud and IMessage and FaceTime but it doesn't work on App Store. Face to an error: can not connect to iTunes Store. What's wrong? My apple Id is working on my MacBook Pro as well.

    At the moment I can use my apple Id on my iPod touch to connect to iCloud and IMessage and FaceTime but it doesn't work on App Store & iTunes just on iPod  Face to an error: can not connect to iTunes Store. (Setting... itunes & app store)What's wrong? My apple Id is working on my MacBook Pro as well. And it was working on this iPod before resetting . Just after resetting I can not connect to App Store & iTunes and I can not instal any app even free apps

    Try
    Can't connect to the iTunes Store

  • TS3276 Mail on OSX10.7.3 reject my pswrd why all other path to mail work. what is wrong?

    Mail on OSX10.7.3 rejects my pswrd with the following message  " iCloud IMAP server “p02-imap.mail.me.com” rejected the password for user xx."
    This has started this morning. The account on OSx10.7.3 had been working with no problems before today.
    The mail connection doctor shows a green light against iCloud service. I can access the mail service with the same account details on an iPad or using safari to access mail on icloud.com.
    What is wrong?

    I am seeing the same erratic behavior across all my devices (2 mountian lion macs, iphone).
    however, I am able to receive new mail (although maybe some is not getting to me?)
    I am seegin behaviors like archive folder empty, vips, empty, mail on mac repeatedly showing mail activitiy downloading all (thousands) of messages.  On my iphone, intermittently i have no folders other than my inbox.  i refresh and somethimes they come back.
    I'm glad to see this post.  I thought I was losing my mind. 
    I don't have a solution, I'm just adding to the converstaion hoping Apple sees this.  The iCloud system status has been green since I began having problems so I don't think Apple is aware.

  • My 2nd mini iPad in a year and same problem happened,it stopped working. what's wrong with mini iPads?!

    I got a replacement to my daughter’s iPad mini in September b/c her 1st one stopped working and now it happened again. I took it to the Apple store and  i was told that there's  nothing they can do. What's wrong with the iPad minis?

    I have an iPad mini and it works great, so do many other people.
    Is it possible your daughter abused the device?   If it gets dropped, even in a damage proof case, it is a shock to the iPad.   Most survive, but if it happens often, it might be a problem.
    Charging often, not completely, leaving in charger while in use a lot?
    Leaving the iPad in a hot car, or freezing the iPad?

  • Downloaded thunderbird 31 now my e-mail doesn't work. what's wrong?

    I downloaded Thunderbird 31 on 10/16/14 and the next day my e-mail did not work. So what is wrong?

    Your '''Installed Plug-ins'' list in '''''More system details...''''' to the right of your posting doesn't show Flash is installed for Firefox. <br />
    Do you have that plugin enabled or disabled?<br />
    Look in Tools > Addons > Plugins to see.
    Or did you download it and not actually install it?

  • Just installed Lion.  MNow my Microsoft Office suite won't work  What's wrong

    I just installed Lion.  Now my Microsoft Office Suite won't work.  What's wrong ??

    If you had used the search box in the upper right of this page you could have answered this question on your own.
    You have a few options: restore back to Snow Leopard from the backup you made before you installed Lion; upgrade to Office for Mac 2011; install Pages from the Mac App Store; use TextEdit; install one of the many open source Office replacements that can found.

  • Updated my iTunes, iPhone will no longer connect. USB Cord is new, and laptop is new too. iTunes on my Work PC is not updated and connects fine to iPhone. What's Wrong?

    I need advice on this. I have looked at most communities and almost none answer my questions, I have restarted my computer a billion times and I have a brand new USB Cord, the only thing I have done is updated iTunes. (FYI:I have an iPhone 4, works fine, only thing is it won't connect to my computer anymore) And like I said, my work PC has a un-updated version of iTunes on it and my iPhone connects fine, maybe iTunes software is problem?

    The following may help:
    Windows computer: iOS: Device not recognized in iTunes for Windows
    Mac computer: iOS: Device not recognized in iTunes for OS X

  • Can't get TouchEvent to work, what is wrong with my code?

    Hello,
    I am trying to get a touch event to trigger.  Using my Motorola Droid 2 phone, I can get a MouseEvent to trigger, but I can't get a TouchEvent to trigger that would change text on screen.
    I am using an AIR For Android Template in Flash Pro CS5.
    Here is my code:
    package  {
         import flash.display.MovieClip;
         import flash.events.TouchEvent;
         public class Document extends MovieClip {
             public function Document() {
                  stage.addEventListener(TouchEvent.TOUCH_TAP, testing);
             public function testing(event:TouchEvent){
                  debugTestbox.text = "Hello"
    This results in nothing hapening.
    However, when I make it a MouseEvent instead, it works.
    Am I using TouchEvent wrong?  If so, what is the correct way?
    Thank you in advance.
    Edit: Nevermind, I figured something out.  I imported Multitouch and MultitouchInputMode, then set Multitouch.inputMode to MultitouchInputMode.TOUCH_POINT and then replaced TouchEvent.TOUCH_TAP with TouchEvent.TOUCH_BEGIN.  I'm gussing TOUCH_TAP is buggy because it didn't work even after making the previous changes.  Regardless, TOUCH_BEGIN works for what I need.

    Hello,
    Take a look now everything should be working you just caught us in the middle of and upgrade.
    Carl

Maybe you are looking for

  • Itunes UNinstall = bad idea??

    Just a quick & possibly dumb question: If I uninstall then reinstall itunes on my pc, will it affect any content on the ipod itself?? I got almost 25gb on there & wont unintall itunes if it messes it up. Reason being is I accidentally deleted the itu

  • Multiple tax code in billing document

    Hi all, Is there way to maintain more than one tax code in billing document? if yes, how should we enter the 2nd Tax code? Please advise

  • Trying to import images from sd card as copy to dng and crashes my program LR3.6

    Trying to import images as dng and crashes my computer. It writes to a temp folder and cannot delete the temp folder bc there is error in writing to it. Mac OSX. Have done this many time with no problem. I can make adjustments inside the program and

  • Weird Sound

    Ok, so my iPod (5G 30Gb) went through the washing machine and I have done all the things recommended on this and other forums. I took it apart because it had already voided the warranty, I let it air dry and it worked fine YAY... until I tried to plu

  • How does Air App invokes parameter -game ModDirectory ?

    Hello Sirs & Ladies,. Did you know about Game by Valve Software like Half-Life or Id Software like Quake. For Half-Life: hl.exe like cstrike -> Counter-Strike  launcher loads with installed or existed mod Directory. For Quake: quake.exe -> Default la