Problem of the application hierarchy

Hello people,

I have a problem of application of hierarchy that I try to be resolved. I have a table that has 1 column where the parent-child hierarchy relationships are defined by the padded spaces left. To illustrate:

Balance_Sheet

Total_Assets

Total_Current_Assets

Cash_And_Equivalents

Bank_Accounts

51100 - money in the Bank

51200 - money in the Bank 2

Total_Liabilities

Total_Current_Liabilities

Creditors

Payable_Accounts_Trade

40010 Payable_Account 1

40020 Payable_Account 2

Thus, the 'Balance_Sheet' has left padded value of 1 indicating that it is the parent of 'Total_Assets' and 'Total_Liabilities '. Add 1 space padding for each additional level in the hierarchy.

There is no column parent_id or child_id, so I can't do a query of type CONNECT BY. I need to split the foregoing in a query that will give me a parent column and child column which could look like this:

PAR_COL CHILD_COL

Balance_Sheet Total_Assets

Total_Assets Total_Current_Assets

Total_Current_Assets Cash_And_Equivalents

Cash_And_Equivalents Bank_Accounts

Bank_Accounts 51100 - Cash in the Bank

Bank_Accounts 51200 - Cash in Bank 2

Balance_Sheet Total_Liabilities

Total_Liabilities Total_Current_Liabilities

SQL is not my usual line of work, to help or direction would be greatly appreciated.

with data as (
  select entry, lev, seq,
  lead(seq,1,99999) over(partition by lev order by seq) next_seq
  from (
    select seq,
    length(entry) - length(ltrim(entry,' ')) lev,
    ltrim(entry,' ') entry
    from t
  )
)
select prior entry, entry from data
start with lev = 0
connect by lev = prior lev + 1
  and seq between prior seq and prior next_seq-1
order siblings by seq;
PRIORENTRY ENTRY
Balance_Sheet
Balance_Sheet Total_Assets
Total_Assets Total_Current_Assets
Total_Current_Assets Cash_And_Equivalents
Cash_And_Equivalents Bank_Accounts
Total_Assets 51100 - money in the Bank
Total_Assets 51200 - money in the Bank 2
Balance_Sheet Total_Liabilities
Total_Liabilities Total_Current_Liabilities
Total_Current_Liabilities Creditors
Balance_Sheet Payable_Accounts_Trade
Payable_Accounts_Trade 40010 Payable_Account 1
Payable_Accounts_Trade 40020 Payable_Account 2

Tags: Database

Similar Questions

  • 7 error "Paris 7.2.241.1enRegInstaller.exe of work and has been closed." A problem with the application to stop functioning properly. Windows will notify you if a solution is available.

    Original title - 7.2.241.1enRegInstaller.exe

    Hello.

    Today, JUST after I "Set Windows to update," twice, I got the disconcerting message:

    "Paris 7.2.241.1enRegInstaller.exe of working and was closed".

    A problem with the application to stop functioning properly.  Windows will notify you if a solution is available. »

    Any wisdom or experience with this?  I'm on a 64-bit HP Pavilion older (dv7-1245dx) with this OS JUST-update Windows (Vista Home Premium).

    Thank you.

    GIES W

    The solution has been found just uninstall bing bar, restart the computer, and if you want just bing toolbar to reinstall. This easy solution my system fixed.  Bing has again reminded all my points that I have amassed

  • Problem of the Essbase hierarchy in the physical layer of RPD (OBIEE 11 g).

    Hello

    I have a scenario that follows

    EssBase Ac.png


    In the screenshot above, we are not able to get the data accounts, Gen1 and Gen2, levels of accounts (taking a measure). We get level 3. Gen1, accounts which the Member 'Accounts' and Gen2 level, accounts Member "ALL_ACCOUNTS". When I combine it with measure only displaying not of any value (possibly summary data). Please let me know/possible error correction must be done as soon as possible.

    Kind regards

    Chandra Khalil.

    Are OK, if you're new to essbase you sure that you are supposed to have values of measures in gen 1 and 2 of your account dimension?

    It is a common behavior to aggregate not always things to the top of the dimension if it does not make sense from a functional point of view.

    It does not shock me for not having values for members 'Accounts' and 'ALL_ACCOUNTS' because in general you can not always aggregate accounts together.

    You can also get the products OBIEE physical query (MDX) in the same way that you get any physical motion in OBIEE and run directly against Essbase (or ask support Essbase guys for this) and validate it returns nothing, and there is a problem in the application itself.

  • I had problems with the application Manager Update, then I was instructed to re - install the product now I can not install I get the error

    Cs6 bought for more than a year, and recently had problems with the application manager, then I was instructed to re - install the product now I get errors after downloading to install it, so now I don't have cs6 on my computer, I can't go to adobe as I keep getting palmed to do that and the next thing , why can't I talk to someone why my program is not installed.

    It's ok now, I used the creative cloud cleanser and then tried to install again and bingo! everything fine now, thanks anyway

  • Problem with the Navigator hierarchy

    Hello

    I installed Navigator hierarchy according to the description in the installation guide, which is

    1. install the Denorm hierarchy (Scripts apply then pitch the series up)

    2. installation of the navigation hierarchy (Scripts apply then pitch the series up)

    and all the results of running the script has been directed by the specified page.

    After installation, I went to tool > > Navigator hierarchy and nothing is displayed, the icon I got is 'Globe' instead of the one mentioned in the document, is there something I'm missing?

    Thank you

    I solved the problem and get the browser hierarchy as expected with all the expected results.

    I did as a result of things to solve the problem:

    1. redeploy the files from v6.1.1\Web to v6.1.0\web.

    2 uninstall denorm and navigator.

    3. suppression of the story earlier version generated scripts.

    4. apply the hierarchy Denorm scripts, Service restarts and IISRest.

    5. installation Denorm Setup, restart the Service.

    6. application of browser scripts. Restart the service.

    7 installation installation and restart the Service.

  • Problem with the application after the installation of the .bar file

    Hello

    I created an application. Everything works fine when I compile Momentics, but when I create a file via the 'Export release build'.bar and install this file on the device app does not work properly.

    The application creates a profiles and showing them in the list view, all the data in the json file. When I install the application of the .bar file create profile and change the settings for this profile and return to the main screen, profiles disappear. This problem will not occur when you compile a program on the phone directly from Momentics.

    Welcome on the support forums.

    you reproduce the workflow step by step with a debug version?
    do you have any record that can give you advice? If not, add a little.
    where is the location json file that you use to save the data? Perhaps a relative path is used.

  • Problems withdraw the application for RuntimeStore

    I have an application that listens to gps, e-mail and sms events. Because I need this application to run at startup of the bb, I used the method mentioned in many articles in kb by placing my application in the Bank to run at startup so that when my gui starts the user interface checks the runtime of the application store and proceeds accordingly. It all works perfectly. My problem comes when I need to stop the background of the GUI thread. I call shutdown in which the application stops all threads, that it is running and then I call a system.exit (0). All threads stop perfectly and closes my gui. However when I return to run the GUI with to restart the phone the waitForSingleton recover again the same background as application before having no threads running in it, and so nothing happens in the GUI (map changes). I also tried to remove the substantive application of the RuntimeStrore through .abolish. When I do cela background threads perfectly but the user interface may not start because an Exception is thrown stating that

    application running in this process... However, this is not when I call the store of runtime. Any ideas as to what I'm doing wrong?

    Thanks in advance

    if(args.length>0 && args[0].equals("gui"))
            {
    
                System.out.println("Starting GUI");
                Controller controller=waitForSingleton();
                try{
                WhereAreYouMain app=new WhereAreYouMain(controller);
                app.enterEventDispatcher();
                }
                catch(Exception e)
                {
                    System.out.println("************EXCEPTION: "+e.getMessage());
                    return;
                }
            }
            else
            {
    
                    boolean AutoStart=true;
                    if(ApplicationManager.getApplicationManager().inStartup() && AutoStart)
                    {
                        System.out.println("********************STARTING WHEREAREYOU*************************");
                    Controller app=waitForSingleton();
                    System.out.println("****************************Started WhereAreYOU**********************");
                    }
                }
            }
    
        public static Controller waitForSingleton()
        {
            RuntimeStore store=null;
            store=RuntimeStore.getRuntimeStore();
            Controller controller=null;
            controller=(Controller)store.get(AppId);
            if(controller==null)
            {
                try{
    
                store.put(AppId, new Controller());
    
                }
                catch(Exception e)
                {
                    System.out.println("Error putting app in storage"+e.getMessage());
                }
            }
            return (Controller)store.get(AppId);
        }
        public static void removeFromRuntimeStore()
        {
            RuntimeStore store=RuntimeStore.getRuntimeStore();
            store.remove(AppId);
    
        }
        public WhereAreYouMain(Controller controller)
        {
            WhereAreYouMainScreen screen=new WhereAreYouMainScreen(controller);
            controller.setMainScreen(screen);
            pushScreen(screen);
        }
    

    When stop you your application, you also have to remove all listeners?  If one of them has a reference, your application will be not eligible for garbage collection and it will remain.

    I understand that this approach (to put the application in RuntimeStore) is actually used in some articles in the KB, but I wouldn't recommend it.

    Instead, I would say put you a small 'data only' RuntimeStore object, call this myRuntimeStore object.  I - this so that you can set a reference to your UiApplication in this document, for example. Have a myRuntimeStore.setMyApp (.) method.  Now your audience can get your app if they want, using myRuntimeStore.getMyApp ().  More importantly, you can erase it and make sure that your application will.  You may encode your listeners to do nothing if your application is not present.

    However, I would like to recommend more than you do not actually store references to your application.  If you need something to initiate treatment in your application process, use a global event.  This beautifully isolates your application of your listeners.

  • BB10 sdk 10.0.9.1673 problem, run the application on the device

    I am facing problem by running the application on BB 10 alpha dev device after the installation of the SDK gold BB10
    question is attached to this post please suggest a possible solution for this problem

    updated the SDK, 1673 is not the last. You should be able to do it using the menu Momentics.

  • I have a problem with the applications and programs on Windows 8.

    Hello/community, Microsoft

    This isn't exactly a "I can NOT LIVE WITHOUT CE SUPPORTS REALLY" but anyway. Since graduating from the programs Windows 8 and I use installed, I ran into a problem. Programs install fine however, sometimes, I find that I try to open the application program / and when I do it is open, but I cannot view it (when clicked) when this happens, I cannot view the content of the programmes, but it is active in the windows taskbar.

    I rebooted, used the Manager of tasks etc... but the program will remain open, but look at one is impossible.

    EDIT: THESE PROGRAMS ARE NOT TO DO WITH THE SHOP 8 MICROSOFT WIN THAT IT IS APPS SUCH AS CHROME/SPOTIFY

    The only soloution I found was to uninstall/reinstall, but I think it's a pain if my Chrome/IE9 was not accessible, I'd be well: limited

    In any case if you could look at this problem and suggest me some links/soloutions.

    Thank you for your time.

    Hello

    You could try to set the compatibility mode of the .exe file to an earlier version in which they worked.

    Right-click on the shortcut and select 'Open file location' then right click on the file and select "properties, then click the tab compatibility.

    You can also try to "Run as Administrator near the bottom of the window.

    Another option would be to click with the right button on the .exe and select troubleshoot compatibility.

  • Since the recent upgrade, I don't see any of my projects in Shutterfly. Their customer support says that it may be the problem with the application Java and Adobe Flash Player

    See above - there known problems with these applications?

    Your player (if any) Java is not indicated clearly in your list of plugins, and your FlashDrive is several versions behind. If Apple has a site update, you can check that first. Mozilla site is here: http://www.mozilla.org/plugincheck/

  • Problem with the application without a head

    Hello.

    My application without head works well in the configuration of the device debugging. When I change to device-release service seems to be frozen.

    "The system. STARTED event"does not start and I don't know why.

    I tried to export the application and install tools, but I get the same result.

    Is there a particular reason?

    Thank you

    There is a known, issue please read this...

    http://supportforums.BlackBerry.com/T5/native-development/unable-to-get-headless-apps-working/m-p/26...

  • After the upgrade to El Capitan having problems with the application Mail

    Hello:

    Recently upgraded my Mac mini to El Capitan. Before the upgrade (from Mountain Lion), I got Thunderbird mail application works perfectly access my GMail account and my Hotmail account. Now, I have no problem with Hotmail and Gmail keeps asking for the password to connect to the gmail imap server. I have TBird in my laptop Ubuntu Linux and Windows too and that you have not had any problems like that. Any help to solve this problem is appreciated. Thank you.

    Try this: https://support.google.com/accounts/troubleshooter/3178296?hl=en

  • Problem with the application Maps Idealpad A1

    I just bought tablet A1.

    When I try to use the Maps application, the system should start reboon in 2-3 sec and I can't use the App.

    I bought 3 tablets for my 3 girls, and each system has the same issue.

    Do you know a solution?

    I had this problem yesterday when I updated Google Maps to v6.0.0, fortunately I was able to uninstall the update & return v5.8.0 & now it works OK once more.

    I don't know if this will solve your problem, but there is a copy of subject v5.8.0 to halfway down this page:

    http://www.apktops.com/Google-maps-5-8-0-world-wide-navigation-activated-support-unrooted-device-now...

    Max

  • Cannot run any application system as anything in the administration tools, network and sharing Center, Device Manager. No problem running the applications Office, IE, etc.

    Vista Ultimate, 32-bit, SP2 had worked perfectly for two months. Machine set up to now and when started the first time, no network connection and my video wallpaper stops with an error message that says to reboot. The 2nd restart, I get internet connectivity, no wallpaper at all and no access to system applications that are listed in the title line.

    I can open Documents and navigate around, click computer and see the disks, etc., right click on computer and view the properties, but it shows no RAM and processor. If I click on Device Manager on this window, it crashes just forever unless I have kill with Task Manager.

    I had Windows Live Onecare on this machine and it expired during the period, it was closed. No problem... I plan to install MSE.

    Originally, I installed a smaller version of Vista of CD (still have it) but upgraded to Ultimate online and is not a product for this upgrade CD.

    I need to know where to start on fixing Vista so that it works correctly.

    Thank you.

    Hello

    ·        Where you upgrade the system for full vista?

    It is better that you have the Vista Ultimate DVD, so I suggest you ask the DVD from the dealer.

    I suggest you to check in the Event Viewer logs and let us know the exact error.

    Open event viewer

    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer

    Method 1:

    I suggest you to do a scan of the SFC. File system (CFS) Auditor verifies that all Windows 7 system files are where they should be as they are by default and not corrupted, changed or damaged.

    a. Click Start, click principally made programs, accessories, right-click on command prompt and select run as administrator.

    b. click on continue or provide administrator credentials if prompted.

    c. in the type in the following command prompt window and press ENTER:

    d. sfc/scannow

    e. you should see the following message on the screen:

    § Begin the analysis of the system. This process will take time.

    § Beginning verification phase of system scan.

    f. % verification complete.

    g. once the scan is complete, a test to see if the problem you are experiencing is resolved or not.

    For more information, see the article mentioned below.

    http://support.Microsoft.com/kb/929833

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I have problems with the application on the computer.

    I get this (pasted below) every time I have some websites or use certain programs. I cleaned my pc using the virus detection and removal, so it is not caused by that. It is not the hardware due to the cleanliness inside the Tower failure because I keep myself fed air canned to clean on a regular basis. I can think of is to the question because of a certain windows update that may have been installed recently. Thank you for answers and assistance.

    Signature of the problem:

     

     

    Problem event name: APPCRASH

    Application name: Reckoning.exe

    Application version: 1.0.0.2

    Application timestamp: 4f2ffdfe

    Fault Module name: ntdll.dll

    Fault Module Version: 6.1.7601.17725

    Timestamp of Module error: 4ec49b8f

    Exception code: c0000005

    Exception offset: 000332a 0

    OS version: 6.1.7601.2.1.0.768.3

    Locale ID: 1033

    Additional information 1: 0a9e

    More information 2: 0a9e372d3b4ad19135b953a78882e789

    Additional information 3: 0a9e

    Additional information 4: 0a9e372d3b4ad19135b953a78882e789

    Read our privacy statement online:

     

     

    http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    This cleared up the problem, but shortly after the restart, Sendori caused a crash in internet explore. I uninstalled it and it's working great now. Thanks for all the help.

Maybe you are looking for