How we display only subordinate?

I wanted to show only the child records. The sub query display starting with employee Scott and all his subordinates... But I want to display only subordinate... How can I display here... any help is appreicated.


SELECT HIERARCHY_NAME
OF T_HIERARCHY_CONVERT
START WITH HIERARCHY_NAME = "Scott".
CONNECT PRIOR HIERARCHY_NO = HIERARCHY_MGR_NO

The other way

select
     sys_connect_by_path(ename,'/') xc, level, connect_by_root ename
from      emp
connect by  prior empno =   mgr
start with ename='SCOTT'
/
XC                                  LEVEL CONNECT_BY
------------------------------ ---------- ----------
/SCOTT                                  1 SCOTT
/SCOTT/ADAMS                            2 SCOTT

Only subordinate.

select
     sys_connect_by_path(ename,'/') xc
from      emp
where ename!='SCOTT'
connect by  prior empno =   mgr
start with ename='SCOTT'
/
XC
------------------------------
/SCOTT/ADAMS

OR
select
     ename xc
from      emp
where ename!='SCOTT'
connect by  prior empno =   mgr
start with ename='SCOTT'
/

XC
------------------------------
ADAMS

SS

Tags: Database

Similar Questions

  • How to display only the total value in the upper part of the chart stacked

    Hi all

    I need to display only the total value at the top of the stacked chart in the report of obiee 11g. Can someone help me on this please.

    Thank you

    Hello

    Will be a little different approach suit you like the below a? Total for a day is displayed next to the attribute of the day. Here, the "daily amount" is also an attribute instead of a measure.

  • How to display only a few children in a Web Form?

    Hello

    Please can someone of you explain to me how to display a form online that a few children (not all) associated with the Member in a dimension.

    Example:

    Account of the dimension:

    Member:

    Generation1: product
    Generation 2: sales
    Generation3:
    -Quantity
    -price
    -711111 (recipes)
    -...

    I want to display in my Web form just sales, quantity, and price. How can I do?

    PS: I tried Ichildren (sales) but it did not work

    Thank you

    http://download.Oracle.com/docs/CD/E12825_01/EPM.111/hp_admin/mem_sel.html

    See you soon... !!!

  • How to display only those items that are in the date

    Hello

    I have a new database and events for a nursery for children site I am building. I have no problem out of the news that I thought... but I'm having a problem with the events.

    I want to display only events that are dated. If the events that took place are no longer displayed. I don't want to delete events though, as I need to archive them.

    I have a date field in the table that is in the following DD MMM YYYY format (example: October 27, 2006).

    Is there a query I can do to select only events that have not occurred yet?

    Thank you

    This will give you the only current day events. Of course like Dan said that the dates must be stored in the field date.

    I'll call you datasource as "yourdatasource".
    Call your table as "yourtable.
    and by calling the column with the date as «DateColumn» field




    SELECT * from yourtable
    WHERE DateColumn = #dateob #.


    Then out it where you want...
    .....

  • How to display only records double-obiee

    Hello
    I want to show only the duplicate records in the report of 10g of obiee. How we do that.

    Please reply if anyone knows...

    Thank you

    806756 wrote:
    Hello
    I want to show only the duplicate records in the report of 10g of obiee. How we do that.

    Please reply if anyone knows...

    Thank you

    Two ways you can do it, one being demand Direct from database and the second using the RPD. Visit this link for the second approach (http://carpediemconsulting.wordpress.com/2008/08/13/displaying-duplicate-values-in-obiee-reports/)

  • How to display only the number of the bank account name

    Hello
    I would like to display the account number of the bank account name if bank account num is null.

    for example

    Select
    NVL (bank_account_num, substr(bank_account_name,6)
    of ap_checks_all

    HDFC_0000000000000
    SBI_0000000000000

    I need to display 00000000000 times the name of the Bank.

    Thank you

    user10664276 wrote:
    Hello
    I would like to display the account number of the bank account name if bank account num is null.

    for example

    Select
    NVL (bank_account_num, substr(bank_account_name,6)
    of ap_checks_all

    You have the right idea. You have 2 left "(" caractères, mais seulement 1 droit")". " I think you meant:

    SELECT  NVL ( bank_account_num
             , SUBSTR (bank_account_name, 6)
             )                     AS account_num
    FROM    ap_checks_all
    

    HDFC_0000000000000
    SBI_0000000000000

    I need to display 00000000000 times the name of the Bank.

    SUBSTR (bank_account_name, 6) will be held the 6th character and the end of the string. If you want everything after the '_', insofar as that is, use:

    SELECT  NVL ( bank_account_num
             , SUBSTR ( bank_account_name
                         , 1 + INSTR (bank_account_name, '_')
                   )
             )                     AS account_num
    FROM    ap_checks_all
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • How to display only downloaded podcasts?

    How do I have on my iPhone can only show downloaded podcasts?

    So when I'm offline I have not need browse 100s of podcasts for the little that I find podcast I listen, as they are downloaded.

    Hello Galaxytraveler42,

    Thank you for using communities of Apple Support.

    If I understand your message that you want to listen to your podcasts offline without having to search for first through many other podcasts. I understand wanting to have things organized for easy access. The following article contains information on how to organize your podcasts in the stations and how to download podcasts for listening offline:

    On the application of Podcasts

    Best regards

  • How to display ONLY the photos on my hard drive and remove the duplicates it.

    I bought Photo Sweeper but have heard warnings of ' reference fileis and the risk of the original photo, sitting on the hard drive.  .  Is there a way to see ONLY photos on the hard drive and use Photo Sweeper here?

    Background: on my HP PC for years, I've created folders for each Member of our family.  Thus, a paper copy of each group photo were regularly filed in each issue of people pictured in it.  Migration to iPhoto and iMac five years ago, all copies of the same photo were transferred on my Mac.  More recently, I've migrated my iPhotos library of Photos.  I would like to clarify these multiple copies to a hard copy, but I feel of the complications and risks. In particular, the integrity of all the projects I did (for example attach a photo to the album, a book or a slide show) could be compromised if I happen to remove the copy special paper which refers to this picture (the correct term?).

    It seems to me that, if I could see the actual photos on the hard drive and use the double Finder here, I could get the job done.  I could combine that info (faces, keywords, descriptions) that I added on a large number of copies and sign him for a single copy and then to eliminate duplicates. Would this work?   Back to a project, I could see a photo with a warning icon, a yellow triangle with an exclamation point inside, which indicates the hard drive file to which he referred is now defunct.  I could (I guess I could, but how!) change things to make this photo point to rest a copy on the hard disk, couldn't I?

    Tips appreciated.  The notice are maybe just don't not to alter my photo library, but it says that I have almost 30 000 photos. I know this isn't so.   Thank you.

    Your question is not clear

    What Version of the operating system and Photos you have? You have a referenced library or a managed library? What specific "warnings" topic referenced b = files you are?

    Please explain what you have and what is your concern

    LN

  • How to display only photos Tags in a folder? Default Apple includes photos of other folders as well if I select a particular tag.

    I tried to use the click with the right button on a photo and see the matter closed, but once again, it only shows the view of the generic folder with all the pictures that are marked or not.

    My goal is to copy photos marked by the record and give it to a photographer who creates an album for me. Please note that these photos were given to me by the photographer and are not in sync in my library of photos.

    Thank you

    Looking for Finder labels in a folder?

    Open the folder in the Finder, then enter ⌘F to open a search window, click the name of the folder in the the line "search"... at the top of the window.

    Now click on '+' to add a constraint to search "Tag contains" and enter the name of your tag, for example:

    The screenshot below shows how to find the blue tags with the label "Probe" in the folder "Desktop pictures".

  • How to display only the 1 channel?

    I do an analysis using the spectral frequency display. In my case, the differences between left and right are negligible, so trying to maximize screen real estate, I would like to show only 1 channel, I don't like that and I do not if I have to disable to hide.

    However, I would not have mono mixer and preference not only make a new file by cutting out an entire channel entirely. Is anyway to do this? All I seem to be able to do is disable channels, which is fine, but it just greys out instead of hide it.

    Although this can be done for waveform display it does not for the Spectral display unfortunately. Perhaps a feature request should be added.

    So for the moment, you are only left with the option to convert a mono file. This can be done temporarily without saving what by going on the Type of sample to convert in the Edit menu and use that preset to convert it into Mono. Convert audio is then only in memory temporary buffer and will not be registered unless you want to.

  • How to display only specified characters in the text control

    Hello

    I use the text control in the swf file. In this file, I want to display text up to 15 charaters and if more, then present them with [...]

    Please provide a solution for this.

    Here ya go to 15 characters maximum.

    This example uses textInputA as a box of textInput that someone can type in.  As a result, in the text/label component, it checks the length of the value of textInputA and if it is longer than 15 characters, it removes all characters beyond 15 and adds [...] at the end.

    You can substitute other things instead of a textInput control, but I used it here as it's the easiest way to explain.

    Let me know if this helps you

  • How to display only icons on the personal bar?

    In the bookmarks toolbar, I have a lot of Favorites and do not want to see titles unless I hover over the icon.
    Is this possible?
    I saw a suite called = add (Smart bookmarks Menu"but he said he was abandoned and not put to update to the latest version I have.)

    Thanks, Jim

    If you click on the bookmark, select 'Properties' and delete the text in the 'Name' field, it just goes to show the favicon in the toolbar.

  • How to display only 4 latest news

    I was wondering if anyone has tried having a number of news to show preferably recent ones...

    Thanks in advance...

    module_data actually runs slower, then normal modules at this point, you have no need in this case as well then you are better off using the normal module:

    module_announcement | Developers of business catalyst

    And the last filter.

  • How to display the current time?

    Hi all!

    I know how to get the Date / time like this:

    {Label

    text: {}

    New Date();

    }

    }

    in which the label displays, for example: ' 2013-02 - 10 T 15: 52.28.

    How to display ONLY the hour (15)?

    Thank you

    -Ali

    Hello

    Use the formatDateTime Qt method:

    http://Qt-project.org/doc/Qt-4.8/QML-Qt.html#FormatDateTime-method

    For the opening hours:

    varhour = Qt.formatDateTime (new Date(), "hh"); or 'h '.

  • How to show only one date only over a period of two days, which corresponds to 24 hours

    Hello, I have a problem that I hope someone knows how to fix easily without having to create tables in a schema that things are moving very slow with our DBAs unfortunately because they have too much on their plates at the moment...

    Here is an example of output that I wrote a SQL for:

    SUM (COUNTS) DT

    15 Aug 15 00:00:00 254046

    16 AUG 15 00:00:00 113031

    Now, how to display only 16 August 15 & 367 077 COUNTIES? :

    SUM (COUNTS) DT

    16 Aug 15 00:00:00 367 077

    If the foregoing loses its formatting, I've included a screenshot below of the output currently I want:

    sample.jpg

    The reason is that one of the conditions was for a period of 24 hours, it is defined as 07:00 to 06:59:59 am the next day... of advice/ideas would be greatly appreciated!  I am using Oracle 10 g if that makes a difference.

    I guess that DT Horus date up to a second. Deduct only 7 hours of DT and then truncate to nearest day:

    SELECT TRUNC (DT - 7/24) DT.

    SUM (PASS_COUNTS)

    From your_table

    TRUNC GROUP (DT - 7/24)

    /

    SY.

Maybe you are looking for