Select level N Details

I want to receive n level detail of single table.

My Table
-------------
One two three

1 file 0
2. change 0
3. record 1
4. Save as 1
5 output 1
6 recent files 1
7 recent files 6
8 files recent two 6
9 copy 2
10 cut 2
11 paste 2


IF I give a = 1 then I need the under detail of level n

output must be...

One two three

3. record 1
4. Save as 1
5 output 1
6 recent files 1
7 recent files 6
8 files recent two 6

Thanks in advance.

Like this

with t
as
(
select 1 c1, 'File' c2, 0 c3 from dual union all
select 2, 'Edit', 0 from dual union all
select 3, 'Save', 1 from dual union all
select 4, 'Save As', 1 from dual union all
select 5, 'Exit', 1 from dual union all
select 6, 'Recent Files', 1 from dual union all
select 7, 'Recent Files one', 6 from dual union all
select 8, 'Recent Files Two', 6 from dual union all
select 9, 'copy', 2 from dual union all
select 10, 'cut', 2 from dual union all
select 11, 'paste', 2 from dual
)
select *
  from t
 start with c1 = 1
connect by prior c1 = c3

Tags: Database

Similar Questions

  • How to use createRowSetIterator with 3 level master-detail?

    Hi experts,


    I use Jdev 12.1.3 and I need to iterate over objects in view of the AM lines (I have 3 level master-detail).

    With this code, I had access to the VO parent and create an iterator:

    ViewObjectImpl viewObject = getParentVO();  
    RowSetIterator rsIterator = viewObject.createRowSetIterator(null);  
    rsIterator.reset();  
    while (rsIterator.hasNext()) {  
       Row row = rsIterator.next();  
       // DO what do you want in Row  
    }  
    rsIterator.closeRowSetIterator(); 
    

    .. .but I don't know how to create iterators according to the parent of the child

    Any idea?

    Best regards
    Jose.

    OK, suppose that a relationship of master-detail Department and employees of the HR db schema. The link to the view that defines the master detail between the tables looks like

    The name of the accessor is EmployeesView. In the t generate line interfaces, including the accessors

    Make the avlailable of the accessor to the VO clinet interface

    and now you can iterate the children lines as

    private static ADFLogger _logger is ADFLogger.createADFLogger (DepartmentsViewImpl.class);.

    public void dummyTest() {}

    get the first line of the departmetns

    Line first = this.first ();

    DepartmentsViewRow depRow = (DepartmentsViewRow);

    lines children handler for employees

    RowIterator empView = depRow.getEmployeesView ();

    iterate over employees of the Prime Ministry

    Line row2 = empView.first ();

    While (row2! = null) {}

    do something with line 2

    _logger.info ("Emp:" + row2.getAttribute (0));

    row2 = empView.next ();

    }

    }

    This method is implemented in the DepartmentsViewImpl class.

    Timo

  • Explore the level of detail showing only a single attribute

    We have a very simple dimension, called CustomerDim, with 2 logical levels, customer and Contact. The client level has an attribute called CustomerName. The level of Contact has 4 attributes ContactID, ContactName, ContactEmail, ContactPhone.

    CustomerDim
    Customer
    -CustomerName
    Contact
    -ContactID
    -ContactName
    -ContactEmail
    -ContactPhone

    My reports of responses (simple table) allows me to drillman down the customer contact, but I still only see of attributes in the Contact section, no matter how to set up the keys to my level. Is it possible to show all attributes in a report of the response: IE, break through to the functionality in detail? I tried to set all level to "Use of Drill Down" keys, but not luck. If I put the only one of them to 'Use for drill down' who will be the one that appears in my report.

    I know I can probably achieve the same thing by simply accessing a new report that provides the details of my contacts, but I was really hoping that set several attributes under a logical dimensional level would achieve this.

    (We're on 10.3.1.4)

    have two sets of keys to the level of the contact

    1)
    ContactID
    Uncheck the use of exploration down, this is the primary key

    2)
    -ContactID
    -ContactName
    -ContactEmail
    -ContactPhone
    Select both, not not separately
    Select the option use for exploration down

  • Oracle Forms Builder - YOU INSERT at the level of detail should take into account the change in amount level header

    Hello

    I have the form master / detail that are both at the level of the table.

    Header block has a MATCHED_AMOUNT column. Detail of block as DETAIL_AMOUNT.

    When the user inserts a record into the retail block, we conduct an insert statement in ONE INSERT trigger block of detail that makes integration with all the problems.

    Question is how can I get the DETAIL_AMOUNT newly added to MATCHED_AMOUNT. I tried to use UPDATE statement in trigger to INSERT the block of retail, but the UPDATE happens.

    Please suggest how to handle this logic.

    Thank you

    Sree...

    Ok.

    Remove the column MATCHED_AMOUNT of block shapes (if the point data base)

    Use INSERT after trigger to the block of retail and update the MATCHED_AMOUNT column to the database with the update command.

    Use a post REQUEST will trigger to the Header_block and show the MATCHED_AMOUNT in a display element with the SQL to the database.

    Hope this helps

    Hamid

  • Feathers of selection + levels = transparency?

    Hello!  I have tried to create a vignette to an image by creating a circular selection, then feather it and reverse. I then use levels to darken a bit, but as long as I have to feather the selection I get a transparent route along the selection, making me see the underlying layer. Is this a bug or I'm doing something wrong. I used this effect in Photoshop regularly and there it works fine.  Thanks in advance, Ronny

    Thanks for reporting this. This is a bug and we it connected to our bugs system. To work around the problem, you can try to duplicate your layer first, and then apply the pen + levels to the top.

  • Forms of multi level master-detail

    Hello

    I have 3 block in my forms, namely A, B, C.

    B is the detail of A block and C is the detail of B block.

    Headers, lines contains elements, Serials contains article serail numbers.

    When I ask with number of specific header I have 2 lines and each line has 3 series. If I click on line 1, everything works fine.

    But if I click on line # 2 and block C is endangered (didn't anydata). for this problem, I added go_block (lines) in

    entqry-key trigger of the header block.

    Now, almost the same problem repeats. Line 1 has 3 series. If I click on any series then immediately if I click on the #2 line

    Blocks B and C are endangered. If I click on line 1, it works very well.

    Please help me.

    Thanks, Rezé

    Srikanth, Amatu Allah thanks for your time.

    I found the problem. Basically - the problem is because the names of the table on which was based the block was long and the name of the relationship that make up the generator creates is truncated and two relationships ended up having the same name. So, I just changed the names of ship of my relationship. It worked

    Thanks, Rezé

  • Select the menu level

    Hey,.

    I'm working on my last game that made me learn a lot about adobe flash.

    But I have a big problem!

    The level select menu...

    I want to do "this" code:

    1. first you select level 1 because this is the only level that is not locked

    2. you made it to level 1 and got 1 x piece that opens the level 2!

    I want my code to be like that, and I want to not be able to give the player a chance to level 1 more time to get more coins.

    1 room, each level.

    This code... I really want to be lazy and I would be delighted if someone could give me the code because I understand the code you give me, but he can not know me much tho.

    In any case if you people want to teach me this instead of just give me the code, I like some links etc about where I could learn it because I had a few problems... What do I need learn to do through, where I can read about it? etc etc.

    Hope for some nice answers and it's a major prodject for me and I'm really stuck atm and after that its pretty easy to do rest is quite well done.

    This should be:

    put the following two lines at the end of each level.

    _root. Counter ++;

    enableButtonsF();

    Place it under function on frame 1 of your fla.  do not change anything except to assign a value to levelNumber (the total number of levels)

    function enableButtonsF (): Void {}

    for (var i: Number = 1; i<>

    _root ["level" + i] true = false;

    _root ["level" + i] ._alpha = 50;

    }

    _root ["Level" + _root. Counter]. Enabled = True;

    _root ["Level" + _root. Counter] ._alpha = 100;

    }

  • C4795: How to get ink, Windows 7, C4795 levels

    I've seen several posts on how to get the ink levels for Printer series C4700 under Windows 7, but all are dead ends for me. Various programs are suggested as device HP Toolbox, HP and HP Solution Center Printer Wizard however have downloaded and installed the complete driver on my PC programs these three is not installed, with only HP available programs being HP Support Assistant and Assistant Application of HP.

    I also went to devices and printers and check options print, properties, etc. without find a display of the ink levels.

    Am I missing something?

    Thanks in advance,

    Joe L.

    Hi @SpotALoony,

    Thank you for joining the HP Forums!

    I read your post that you are trying to find the ink level for printer HP Photosmart c4795 on Windows 7. And I'm happy to help you!

    You can use the HP print and Scan Doctor to check levels of printer ink as well as details of the cartridge as the installation, warranty dates and serial numbers.

    1. On the desktop, double-click the print icon HP and doctor Scan to open the tool.

    2. Under the title of product of the Welcome screen, click on the name of your printer, and then click Next.

      Figure: Click on the name of your printer

    3. In the window HP Print / Scan Doctor, click printer.

      Figure: Click on printer in the print window HP and doctor Scan

    4. In the drop-down list, select levels to provide or ink.

      Figure: Click provide levels in the menu drop-down

      The tool displays estimated ink levels.

      Figure: Example of the window of the estimated ink levels

    Source: using Print and Scan Doctor for Windows in order to solve printer problems.

    If it helps, please consider clicking on "accept as a solution." And, please click the thumbs up icon. The two icons are below this post.

    Hope that answers your question and have a nice day!

  • Search for Windows 7 and the button of level a top

    I tried something and found the file I am looking. I want to delete this folder (and not only its contents) and perhaps other things in its parent. Anywho, I click on this file the research and then try to go to the top. First instinct, button up. Well this isn't here, it's just old habit. Expect the little whole bread crumbs. Only brings me back to my research... why I want to get back to my research if I found what I'm looking for.

    Good, well maybe I'm missing something. * click * Search right up to a level or something. Nada. The only way that I can know where I am is by clicking on a file then go to its properties.

    Sorry, but that's all just bad design. I'll admit that maybe miss me something again, please someone help me.

    Hello

    When you search for a file or folder in Windows Explorer, the path to the location of each result must be shown just below found the folder or file. Here is a screenshot.

    http://i196.Photobucket.com/albums/aa86/rvmv/searchresults.PNG

    If you have points of view icon selected, click on the change your view drop-down menu in the top-right of the window, and then select display list, details, tiles or content (the screenshot has selected content).

    Research is a stand-alone that creates a virtual folder that displays the results. There is no part of the folder hierarchy, unless you save the search.

    If you click one of the results and select the location of the open folder, it will take you to the folder where the item.

    To navigate from in any particular file:

    To go to the TOP, press Alt + up arrow.

    To display the path to your current location, click on an empty spot in the address bar.

    Click the arrow to the right of any folder in the address bar and the Parent folder appears in bold text.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • Advice on the selection and removal of objects from the background (CS6)

    Hello!

    I know that the title is not so accurate. I used HAVE a 1.1, but not a power user. I know there are a lot of different ways to do the job. And if you know what you are doing you can get this done fast. Especially with a lot of files to process. Here is an example of a vector, with that I need to work. I would like to delete all the objects of "background". Those of grey to white vectors, leaving the main work only. I would use this then make a black mask for the PS, but also be able to place on other files without extranious geometry. I tried to select a variety of gray objects and use of analogues of select variety, but it does generally creaded more work, leaving the empty vectors and points without really everytrhing selection I would like to remove.

    So, is there an easy way to select and delete all the objects (light gray) background to delete? I wish I could this batch because I have a lot of files to clean.

    Here is the file I, if someone wants to take a look (http://www.filehosting.org/file/details/428446/rumble3.ai)

    I do not know there is an effective way to do it.

    Thank you

    In advance!

    Maxi

    rumble3.jpg

    Sorry, I meant the magic wand.

    You can enter a blur value (take the darker gray to select level), and then click a white object. Would maybe work. If yellow objects are captured, you could avoid using the magic wand with zero tolerance.

  • Stuck on CONNECT_BY... PRIOR statement / select queries

    I'm trying to generate a list of the customizations made to our system of e-Business.

    I use this example as a starting point:
    SELECT *
       FROM applsys.jdr_paths jp1
      WHERE UPPER(jp1.path_name) = 'CUSTOMIZATIONS'
        AND jp1.path_docid BETWEEN 18000 AND 18700;
    
    _NAME                                                    PATH_DOCID PATH_OWNER_DOCID PATH_TYPE                        PATH_SEQ PATH_XML_V PATH_XML_E CREATED_BY                     CREATION_ LAST_UPDATED_BY                LAST_UPDA LAST_UPDATE_LOGIN
    -------------------------------------------------------- ---------- ---------------- ------------------------------ ---------- ---------- ---------- ------------------------------ --------- ------------------------------ --------- ------------------------------
    customizations                                                18479             1650 PACKAGE                                -1                       1                              24-SEP-05 1                              24-SEP-05 1
    customizations                                                18665            18663 PACKAGE                                -1                       1                              24-SEP-05 1                              24-SEP-05 1
    customizations                                                18010            18009 PACKAGE                                -1                       1                              24-SEP-05 1                              24-SEP-05 1
    I can then use this to extract the full path - for example, using the example above, the "PATH_OWNER_DOCID" = 18663:
    SELECT     LEVEL
             , SYS_CONNECT_BY_PATH(p.path_name, '/') PATH
             , p.path_docid
          FROM (SELECT jp.path_name
                     , jp.path_seq
                     , jp.path_docid
                     , jp.path_owner_docid
                  FROM applsys.jdr_paths jp) p
    CONNECT BY path_docid = PRIOR path_owner_docid
    START WITH p.path_docid = 18665;
    
    LEVEL     PATH                                                                  PATH_DOCID
    ------- -------------------------------------------------------------------- --------------
    1     /customizations                                                          18665     
    2     /customizations/webui                                                  18663     
    3     /customizations/webui/pagesetup                                          18661     
    4     /customizations/webui/pagesetup/printmgmt                          18660     
    5     /customizations/webui/pagesetup/printmgmt/bpa                          10174     
    6     /customizations/webui/pagesetup/printmgmt/bpa/ar                  10173     
    7     /customizations/webui/pagesetup/printmgmt/bpa/ar/apps                  2     
    8     /customizations/webui/pagesetup/printmgmt/bpa/ar/apps/oracle          1
    What I would really like to do is to include the low path most (i.e. the most detailed way, full (path_docid = 1 in the above e.g.) in the first SQL statement.)

    In this way, against each customization, listed by that:
    SELECT *
       FROM applsys.jdr_paths jp1
      WHERE UPPER(jp1.path_name) = 'CUSTOMIZATIONS'
        AND jp1.path_docid BETWEEN 18000 AND 18700;
    I would like to include, possibly via a subselect, the full path of the customization - all other lines leading to the full path, just the full path itself.

    But I can't work on how to combine the 2 SQLs, assuming this is possible at all.

    Any advice much appreciated.

    Thank you!

    If understand your right to question... Just a MAX would work.

    select (SYS_CONNECT_BY_PATH(object_name, '/'))
     from
    (
    select object_name, rownum lv
           from all_objects
       where rownum <= 5
       ) t
        START WITH lv = 1
       CONNECT BY PRIOR lv = lv - 1
    ;
    (SYS_CONNECT_BY_PATH(OBJECT_NAME,'/'))
    --------------------------------------------------------------------------------
    /WRH$_SERVICE_WAIT_CLASS_PK
    /WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS
    /WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK
    /WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL
    /WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL/WRH$_OSSTAT_PK
    5 rows selected.
    
    select max(SYS_CONNECT_BY_PATH(object_name, '/'))
     from
    (
    select object_name, rownum lv
           from all_objects
       where rownum <= 5
       ) t
        START WITH lv = 1
       CONNECT BY PRIOR lv = lv - 1
    ;   
    
    MAX(SYS_CONNECT_BY_PATH(OBJECT_NAME,'/'))
    --------------------------------------------------------------------------------
    /WRH$_SERVICE_WAIT_CLASS_PK/WRH$_SERVICE_WAIT_CLASS/WRH$_SYS_TIME_MODEL_PK/WRH$_SYS_TIME_MODEL/WRH$_OSSTAT_PK
    1 row selected.
    

    VR
    Sudhakar B.

  • How to shorten the details displayed by email to the Notification Center iOS 10?

    In iOS 10, each email appears in the Notification Center with a large amount of detail/lines.  Is there a way to configure notifications to display only the subject and sender of new emails, or otherwise reduce the level of detail?  I would rather see less detail in the Notification Center, unless I press article for more details.

    Hello triplegreen,

    Thanks for this info and choosing the communities Support from Apple. I know how important is able to customize how your email will appear in the Notification Center is for you! The good news is that these steps will be useful for your problem, you can go to settings > mail > overview and change for lines 1 or 2, depending on your personal preferences.

    Preview your messages - iPhone user Guide

    See you soon!

  • OSX 10.11 Mail - activation of activity in detail

    OSX 10.11 El Capitan Mail displays more details in the window of activity, particularly when multiple e-mail accounts are used, it is no longer possible to know which message download accounts, nor how is download for this account.

    Does anyone know all the Terminal commands to change the behavior of Mail to display the same level of detail in the activity window we had before 10.11 OSX?

    I'm normally tolerant Apple efforts to simplify and improve the user experience. But after 25 years, lack of Apple documentation user and notice of all the major changes made under the hood (I'm referring to common problems and misunderstanding caused by changes in database in mail from V2 to V3) can cause loss of time and a lot of frustration. I've especially sorted my V2 to V3 problems created by the post office, but lack of details in the activity window to be able to know which account is causing problem (short of disconnecting all accounts and backwards) is a major back major step in usability. Also, it insults my intelligence. I don't have 8 email accounts with a mixture of iCloud, Hosted Exchange, IMAP and POP, so the 'simplification' of the UI needlessly causing me a lot of grief.

    Apple, if you listen, please give users an option to turn off these major simplifications in the UI and give us back the tools to help solve our own problems created by changes to this criticism a workflow App.

    Agreed. Since the new window of activity is limited to a message "checking mail...". "rather than view the details for each e-mail account as he has already done it is completely useless at this point.

  • Windows Explorer 7 change modification timestamps of files while selecting

    I have something very weird.

    One volume, it is in fact a TrueCrypt container and a hidden, but still: nothing is weird anywhere except in one place where I am browsing of .eml files, which are emails from some backup program.

    In fact, copying the files to my regular C: partition changes also modification dates, but that may be a bug in Windows 7 "regularly." I just used RichCopy to copy this 6 000 file folder. If Explorer now would end never read the new directory... so much worse I deleted most of it using a different file Explorer, and now the behaviour is not replicated here.

    There is a strange difference between the Explorer on my TrueCrypt volume window and my C: drive, which is also TrueCrypt, just not hidden.

    The folder C: shows options records 'Date' 'Modified' and 'Created' as columns, while the hidden volume indicates 'Modified' and 'Created' as an option for the columns, but not the simple "Date." What more, apparently this column 'Date' analysis (or indexed) the contents of the file, because it shows email dates not present in one of these stamps of file. This would explain why the column 'Date' is not present on the other volume, because I think that it is set to Index only the volume of my system. This could also explain why Explorer took several minutes able to read the contents of the folder and has not yet finished before I canceled it.

    But that in itself may not be good, because the indexer does not actually cover these locations and each file is scanned in fact.

    Then, the reasons for what it is is not known. My tool using alternative (XYplorer) now no longer retains the change dates. At the time wherever the files are copied, they are still correct, but less than a second, I see the date mod change at the present time. And now RichCopy ALSO cannot keep mod-dates. All these volumes are NTFS.

    Referencing of: Windows 7 Windows Explorer change suddenly last updated Date of the files attribute

    During this time, it does not change the date of any other file I can copy. Since the same volumes. Not for the other files can be analyzed as text, image, audio. It does only to EML. But only for the location, after that I copied the files somewhere else (on the same volume) before I put back the date mod (changing the time system and then do the thing) it will that thing even in this other place. And now to the main location also is more compatible. He will do it is no longer the files I copied elsewhere when the date was a day back. But it always does to any other files.

    Maybe my backup tool that created the files just made something weird, I don't know.

    This is much like the following article.  Maybe their solution will work for you...

    "*.eml timestamp - select the file in Windows Explorer changes the modified Date.

    <>http://social.technet.Microsoft.com/forums/en-us/b413258d-08c1-46f8-a7f7-6f0c6c8dd6d6/eml-time-stamp-select-file-in-Windows-Explorer-changes-the-modified-date?Forum=w7itprogeneral >

    The columns that you see in a window of the Explorer can be customized (in the Explorer window, press then release the ALT key, then select 'View'-> 'Choose details', or you can set it by choosing a 'type' to the file (right click on the folder-> properties-> customize (tab)-> change "what kind of folder do you want?))  Some will be displayed 'Date', some don't.

    HTH,

    JW

  • Windows 7 - current backup - Message 'Windows backup has stopped working' when clicked details

    I really hope someone can help me solve this problem.

    From the center of the action of the message "backup Windows has stopped working" appears in all of the following situations:

    Change the settings - custom selection
    The details view button
    The details of the problem for this are:
    Signature of the problem:
    Problem event name: APPCRASH
    Application name: sdclt.exe
    Application version: 6.1.7601.17514
    Application timestamp: 4ce79920
    Fault Module name: sdclt.exe
    Fault Module Version: 6.1.7601.17514
    Timestamp of Module error: 4ce79920
    Exception code: c0000005
    Exception offset: 000000000006ec27
    OS version: 6.1.7601.2.1.0.256.1
    Locale ID: 2057
    Additional information 1: 074f
    More information 2: 074fc5e23444d0689ec391e7e8fdce41
    3 more information: 9fb7
    Additional information 4: 9fb70d37706531bfd07966220029ca0e
    Curiously, however, the backup runs, and I can change the settings if I let you choose the selection option "auto - let windows choose".
    I did what follows in the hope of fix:
    Checked and disconnected the destination of backup disks.
    check all drives (chkdsk/f)
    Reboots (several)
    Disabled antivirus
    Validated executable file (it is identical to another machine where everything works)
    Any help gratefully received that I am at a loss!

    Hello

    You back up files to any external device?

    You can try the following and see if it helps.

    Method 1: System File Checker

    System File Checker will try to help you in fixing all corrupted files and folders from the computer.

    Please click on the link below:

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

    Method 2: check if the Windows backup service is started or not.

    Follow these steps to search for the same thing.
    1. Select start > run and type services.msc.
    2. search for the Service backup Windows and double-click the Windows backup service to bring up Windows backup service properties window.
    3. Select automatic and then click Start.
    4. If this is not the case, it just select the menu drop down and then start.
    Also check if the service dependency for this service is started by following the same steps as above.
    First of all, to check which is the service dependency for Windows backup service follow these steps:
    1. Select start > run and type services.msc.
    2. search for the Service backup Windows and right-click on it. Click Properties and on the Dependencies tab, you will find the dependent services.
    3. write down these services that depend on and follow the 4 steps above and launch these services too.
     
     
     
    For more information, please see the links below:

    Back up and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions
     
     
     

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

Maybe you are looking for