How do we display only subordinate?

I wanted to display only child records. The below query display starting with employee Scott and all subordinates... But i want to display only subordinate... How can i display here... any help is appreicated.
SELECT HIERARCHY_NAME
FROM T_HIERARCHY_CONVERT
START WITH HIERARCHY_NAME = 'Scott'
CONNECT BY 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 SCOTTOnly 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
ADAMSSS

Similar Messages

  • How do I display only key instead of description in MDX query

    Hi,
    Whenever I try to display material number, QN number.... in MDX it only displays the description instead of key. In query designer, it says "display as key and text".  How do I display the key only instead of text?
    Thanks,
    Duy

    I used your query and pointed to my query and the result is as expected - both key and text. I'm not sure what is different between our IO and mine.
    SELECT [Measures].MEMBERS ON COLUMNS,
    [0VENDOR].[LEVEL01].MEMBERS 
          PROPERTIES    [0VENDOR].[20VENDOR] ON ROWS
    FROM [MY QUERY]
    then I tried to hardcode the value it only showed me just the text. I tried different ways to make it show either just the key or both - but couldnt figure out. And one more thing I confirm is that the display settings in Bex really DOESNT matter or taken into consideration my MDX.
    SELECT [Measures].MEMBERS ON COLUMNS,
    {[0VENDOR].[ABCD]} ON ROWS
    FROM [MYQUERY]
    let me know if were able to figure it out
    Try the below statement and see what it does
    SELECT [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [0NOTIFICATN__0NOT_TYPE].[LEVEL01].MEMBERS
    DIMENSION PROPERTIES [0NOTIFICATN__0NOT_TYPE].[20NOTIFICATN__0NOT_TYPE] ON ROWS
    FROM [YOURQUERY]
    Edited by: voodi on Sep 28, 2010 3:08 PM

  • How can I display only one value of a field with two or more values?

    Post Author: skiabox
    CA Forum: Crystal Reports
    I have a field in my report with 2 or more values (depending of another field id).For example for id = 1 the report gives me 2 names in that field.For id = 3 the report gives me 3 names in that field.I want to display only one of these names in the id row.The selection of name is random.Thanks!

    Hello Tim,  would barely fit in this situation since this code resides on the client’s interaction side of things. I’d recommend using JavaScript for this matter, e.g. var Data_FName1 = document.getElementById(‘Data_FName1’).value;. If you still opt for using CFML, then you’d go for proxying your JavaScript code to a CFC.

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • How can I display ONLY bookmarks, and not History?

    I'm sorry to ask a question with probably such an obvious answer, but I have never been able to figure this out. I want to display all my bookmarks so I can do a search & find the right page. But I always get my entire list of every page I've ever visited. I don't want to delete my history, but I want to only show real bookmarked pages.
    Here's what I've been doing: I select "Show ALl Bookmarks." Then I select a folder on the left under the header "BOOKMARKS." It still shows all the pages I've visited today.
    Thanks.

    After you enter the search criteria make sure you click on Bookmark Menu in the upper left of the coverflow window.

  • How can I display only the Data Logging pull down menu on my LV front panel?

    Is it possible to hide all unused pull down menu on my front panel vi like File, Edit, View etc.. and only
    display the pull down menu for the Data logging?!
    best regards
                          Norick

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How can I display only speaker notes on iPad?

    I have an IT dept that takes care of getting the ppt slides on the screen. I just want to use my iPad for my notes. Being able to get the notes into my iPad from a ppt would be awesome.

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How to put display-only condition in a custom include program

    hello everyone,
    I have to make a custom include program that will be used instead of the already available 'bdcrecx1'.
    I have a couple of questions and would appreciate your help.
    I need to create a parameter with a checkbox. When this checkbox is 'X' the following 2 fields need to be greyed out, otherwise user should be able to enter values in them. How can I grey out the fields?
    Using my include I should have just the following:
    1)parameter with checkbox
    (if 'X', session and user greyed out)
    2)Session Name
    3)User Name
    Also, is there a way I can avoid putting the following onto the screen:
    1)Keep session (this will always be defaulted to 'X'
    2)No Data
    <b>Note:</b> I made a copy of 'bdcrecx1'and i'm doing changes according to my requirement.
    Thanks in advance.
    Regards,
    Fred.

    Hi,
    For your first question.
    use
    assign user command for checkbox say 'CLICK'..
    at selection-screen output.
    loop at screen.
    if screen-group3 = 'VALUE' and checkbox condition.
    screen-active = 0.
    else
    screen-active = 1.
    endloop.
    To make sure that the user enters the data in fields if checkbox is not grayed,
    do it in event
    start-of selection.
    if field is initial.
    exit.
    go back to previous screen.
    endif.
    for removing 'keep session' , check out for exits..
    Regards,
    Tanveer.
    Please mark helpful answers
    Sorry about the previous error in reply.
    Message was edited by: Tanveer Shaikh

  • How can you display only one artboard in the Navigation Panel?

    I would like to be able take advantage of the Navigation Panel as a thumbnail view of the artwork I am illustrating. The Adobe Illustrator file has 5 art boards. Is there an option in the Navigation Panel to view the art board I am working with, alone? 

    > That could work if all of the group items were the same size.
    Why would that matter? Each GroupItem has its own controlBounds, height, width, position properties. Each Document has its own height, width, pageOrigin properties. The script would reference those properties to position the Group in the center of the document.
    JET

  • How make display only the amount field in table control(infotype 0008)

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

  • Display only latest record

    Post Author: rlivermore
    CA Forum: Formula
    (CR v10 Pro) How can I display only the lastest record if there are multiple entries for a specific job number (SO number). I have 2 groups {tblSO.SONumber} and {tblSONotes.LastModified}.  I tried sorting LastModified by descending order and putting all of the fields into the tblSONotes.LastModified Group and hiding the Details section and Group Footers to no avail.  Help?
    Below are the fields in my report...
    {tblSO.DateOpened}  {tblSO.SONumber}  {tblSO.Status}  {tblSONotes.LastModified}  {tblSONotes.Topic}  {tblSONotes.Notes}
    Sample Data
    1/12/08  124113  Scheduled  1/1/08  Dispatch  Technician scheduled on 1/15/08.
    1/12/08  124113  Scheduled  1/15/08  Dispatch  Job has been completed.
    In this example I'd only want the last record (1/15/08) to display on the report, suppressing the one on 1/1/08.

    Post Author: Jagan
    CA Forum: Formula
    Sorry
    Unlike SQL, a group in Crystal implies ordering (that's my understanding anyway).Here's two different ways to get the most recent record per job:
    1)Group on Job. Group on date. Use the group selection formula to get the most recent date per job, i.e.{table.date} = maximum({table.date}, {table.job})
    If your date fields are unique (e.g. timestamp rather than just a date) then you'll only get one record per job so you can use the details section. If not you'll need to add another field / formula to sort on to determine which of the multiple records to show using the date group header / footer to display.
    2)Group on Job. Order by date. Suppress the details, print in the job group header / footer depending on the date ordering. Same process for non-unique dates.
    There are advantages / disadvantages to both, e.g. the latter means that all other records are available to running totals etc. which is good/bad depending on what you want the report to do.
    Is that better???

  • Displaying only Unread mail

    How can one display only unread email? Doesn't seem to be intuitive way to do this.
    Thanks.
    Message was edited by: chip grabow

    Chip,
    In mail just create a new "smart mailbox". The critera would be messages that meet the conditions "Message is Unread". Then you can just click or the smart mailbox and see unread email.
    Cheers

  • How can I display my bookmarks toolbar with text only, but still have the rest of my toolbars (search, navigation, tabs, etc) display icons?

    I have a bunch of bookmarks in my bookmarks toolbar. How can I make my bookmarks toolbar display only text but have my other toolbars (navigation, etc.) display only icons? It seems like I have to choose between icon, icon and text, or text for all of the toolbars. I want it to look like it did with my old version of Firefox. All my bookmarks in the toolbar fit, but now they dont because I cant get rid of the icons.

    You can do that with the Bookmarks Deiconizer extension - https://addons.mozilla.org/firefox/addon/bookmarks-deiconizer

  • How can I display all my e-mails.  Only some of them show up now...thanks to an apple representative in the apple store

    How can I display all my e-mails on all my Apple products?  Only some of them show up now...thanks to an apple representative in the apple store.  Also, he put my oldest emails in POP (???)

    How can I display all my e-mails on all my Apple products?  Only some of them show up now...thanks to an apple representative in the apple store.  Also, he put my oldest emails in POP (???)

  • How can i display a portlet in the Edit view only ?

    Dear All,
    I'm developing a portal in which the end user can change the content of the portal page (personalize) using Edit smart link and i ask How can i display a portlet in the Edit view only ? not shown in the production view ?

    Last time I heard with Oracle they said the only way is to look at the current URL. If it contais _mode=16 then we are in edit mode.
    This is a function I use:
    FUNCTION inEditMode return boolean is
    bEdit boolean := false;
    begin
    if PORTAL.wwpro_api_parameters.get_value('_mode', 'qaz') = '16' then
    bEdit := true;
    end if;
    return bEdit;
    end inEditMode;
    Kind regards
    Tomas Albinsson
    Stockholm, Sweden

Maybe you are looking for