Finding the Manager

Hi,
While using the EMP table, please tell me the query to find out who is the manager of a employee .. I know that we can achieve that by using self join .. but unable to write the code for it .. Please help
Regards

SQL>SELECT empno||' whos is '||ENAME||' works for '||nvl(to_char(prior empno), 'None')||
  2           ' whose name is '||nvl(prior ename, 'NONE') Hierarchy
  3  FROM emp
  4  START WITH ENAME = 'KING'
  5  CONNECT BY PRIOR EMPNO = MGR
  6  /
HIERARCHY
7839 whos is KING       works for None whose name is NONE
7698 whos is BLAKE      works for 7839 whose name is KING
7654 whos is MARTIN     works for 7698 whose name is BLAKE
7499 whos is ALLEN      works for 7698 whose name is BLAKE
7844 whos is TURNER     works for 7698 whose name is BLAKE
7900 whos is JAMES      works for 7698 whose name is BLAKE
7521 whos is WARD       works for 7698 whose name is BLAKE
7782 whos is CLARK      works for 7839 whose name is KING
7934 whos is MILLER     works for 7782 whose name is CLARK
7566 whos is JONES      works for 7839 whose name is KING
7902 whos is FORD       works for 7566 whose name is JONES
7369 whos is SMITH      works for 7902 whose name is FORD
7788 whos is SCOTT      works for 7566 whose name is JONES
7876 whos is ADAMS      works for 7788 whose name is SCOTT
9999 whos is ADAMS      works for 7788 whose name is SCOTT
8888 whos is KING       works for None whose name is NONE
16 rows selected.
SQL>By the way, I'm sure you are from AP, are you from Hyd? Don't spam the forum, but you can answer me in any other thread or by saying thanks. ;-)
Cheers
Sarma.

Similar Messages

  • I have adobe digital edition 2.0 and I am trying to authorize my erreader, but I am unable to find the 'manage library' before I open ADE.

    I have adobe digital edition v2.0 and I am trying to authorize my erreader, but I am unable to find the 'manage library' before I open ADE.  Where to I find the 'manage library'? and should I upgrade the ADE to version v1.7.2.?

    To make Mail quit you'll need to perform a forced quit or, failing that, a forced shutdown.
    When an application won't quit you can hold the Command and Option keys together and then type the ESC key. This (usually) brings up a dialog with all the running applications. Select the offending program and click the Force Quit button.
    If this doesn't force the application to quit (quite rare) or if you cannot get the Force Quit Dialog to pop up, hold the power button for about 10 seconds to shut down the entire computer. This should be a last resort but sometimes is necessary.

  • My bookmark pull down menu doesn't offer " manage bookmarks". In all the support Ican find this is how to edit bookmarks. How do I find the manage link if it's not in teh pulldown menu?

    Question
    My bookmark pull down menu doesn't offer " manage bookmarks". In all the support I can find this is how to edit bookmarks. How do I find the manage link if it's not in the pull-down menu?

    In Firefox 4, "Organize Bookmarks" has been changed to "Show All Bookmarks" to open the Library window.

  • I cant find the "manage devices" on my "account information"

    Can someone help me on my account information page i cant find the "Manage devices" someone help me please

    You need to enable automatic downloads on the computer or device that you would like to "manage".  As soon as this is done the manage device button will appear in your account.
    Link: http://support.apple.com/kb/HT4539?viewlocale=en_US&locale=en_US

  • Find the manager for pirticular emp

    Dear all,
    i know the employee how to find the manager for that pirticular employee what is the navigarion path.
    good answer would appriciated.
    By
    Bose

    Hi,
    IN the transaction PP01 por object type P you have to check the relations A012 and A02.
    Regards,
    Kapil

  • Could not find the Manage Accounts option in File = Info Tab in MS Project 2010

    Hi,
    I am using MS Project Professional 2010 first time. I am trying to setup Project Professional 2010 Desktop to connect project server. Somehow I couldn't find the "Manage Accounts" option in File => Info Tab.
    Quick help is required!
    Thanks,
    Prashant

    Julie,
    what did you tell him?  I am having the same issue.  I can only navigate to ALL Programs>Microsoft Office> Microsoft Office 2010 Tools.  There is no Microsoft Project Server 2010 Accounts.
    I know this has been closed for awhile, but I need to fix this ASAP.  I had the "Manage Accounts" while I was on XP, but they upgraded me to Windows 7 and now it is gone.

  • Find the Manager for Group

    If this isn't a good place to ask this question I applogize in adavance if you could provide a link to the correct area I should ask/post this I would appreciate it. Otherwise...
    The end goal is to fill in the Managedby atribute for a lot of secuirty groups with a correct manager. I have a list of a 2100 groups and I have a data share that has like 10 petabytes of data in 3000 different directories, roughly. The point is there is
    a lot. At this point I'm just trying to identify who should be the manager for group.
    I'm trying to figure out the best way to approach this any and all advice/suggestions is apprecited. Even it is go pound sand, newby...hopefully not but I'll understand if it is :-)
    Found
    this searching
    Thanks in Adavance

    Fair enough...Sorry for wasteing your time, but thank you for your help
    Thanks in Adavance
    You are not wasting anyone's time it is just that there is no way to answer your question.  These decisions are based on your organization.  Scripts cannot decide who manages who.  You need to get with your management and implement an org
    chart.  The org chart gets directly tied to groups.  It starts with the org chart.  Each position gets a group and the manager or exec is the owner of the group.
    In most companies this may be delegated since so many managers and execs are computer illiterate.  The delegate becomes the group manager and manages resource allocation through group membership.
    This is Active Directory deployment 101.  I recommend contacting a certified consultant to help you set this up.  It is fundamental and critical.  I cannot understand how you can have a large AD deployment without having a formal design document. 
    It probably exists but those that know it have been let go to save money.  Now you are lost in limbo.
    Do more research.  Ask a lot of questions.  Be a detective and see if you can find the original documents.  If you succeed you will be a hero.
    ¯\_(ツ)_/¯

  • Hr abap issue find the manager name and mail-id

    hi all,
    my requirement is below this. can any one help me to send code for this requirement.
    1.Logic for Employee status: Check if employee position has any other position reporting to it. Check if a record exists in HRP1001 where OTYPE = u2018Su2019, PLVAR = u201801u2019, RSIGN = u2018Au2019, RELAT = u2018002u2019, ISTAT = u20181u2019, BEGDA <= start date in selection, ENDDA >= end date in selection, SCLAS = u2018Su2019 and SOBID = Position. If yes set Employee Status as u2018Manageru2019. Else set as u2018Non-Manageru2019
    2.Manager name/Email: Identify the reporting position through B002 relationship from HRP1001. For this reporting position identify the Manager by A008 relationship. For this personnel number retrieve Name from IT0001 and Email ID (USRID) from IT0105 SUBTYPE as u20180010u2019.
    thanks & regards
    revathi raj.
    Edited by: revathi raju on Sep 5, 2008 12:06 PM

    thanks

  • How do I find the Manage My Account Button to get my recovery key I have followed all the instructions and still can't find it.

    That's pretty much it, I have followed all the links to explanations as to where it's at but still can't find it. Ready to give up and sync Google Chrome!

    To SYNC
    In Mobile
    *Firefox > Menu > Settings > SYNC
    **If you have the System then use the "Code" otherwise click "Advance Setup" to enter your Username, Password and Recovery Key
    For more
    *https://support.mozilla.org/en-US/kb/how-do-i-manage-my-firefox-sync-account

  • I can't find the manage sub option on my iphone 6 or itunes for windows

    I have tried all the support articles on this site. I don't have that option. If I don't have the option does it mean I don't have any auto-renew subs. I have purchased a few on weather apps to remove ads,add special features etc.

    If you have any active auto-renewing subscriptions then you should get the Subscriptions option showing on your account - and each subscription should be shown with when they are due to renew and how long for (and, if available, show you any options for the length/cost of renewal) and have an on/off switch.
    If an app does offer auto-renewing subscriptions then the should be mentioned on its description page in the store, and the 'top' IAPs are also generally listed on the left-hand side of the app's description page in the store on your computer's iTunes.
    You could contact iTunes Support to double-check to see if they can see any on your account : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I can not find the Manage Reviews button in Itunes.

    Also i can not seem to have my Reviews posted on any app i try to review.

    Thanks guys, had no idea about hardware level.
    would you mind answering that - so far it does not make sense to me.
    https://discussions.apple.com/message/19953690#19953690
    sorry for highjacking OP.

  • I want to find the cost center manager's PERNR

    Hi,
    I have list of cost centers which are not the home cost centers. For this cost centers i need to find the person responsible. For this requirement BAPI_COSTCENTER_GETDETAIL1 function module returns the cost center details where VERAK field is the PERSON Responsible name. But I want the owners PERNR, USRID, AND POSITION.
    I dont know how to find the pernr from PERSON responsible name. So Please anyone help on it.
    Thanks & Regards,
    vignesh

    Hi,
    Your answer was helpful.
    Org.unit manager might be different. I can pick the org unit attached to the cost center and find the manager of the org unit. How are you saying org unit manager is same for cost center also.
    If org unit manager is responsible for cost center attached to it then i got my solution for my requirement. Please confirm this.
    If you know the bapi_get_costcenter_details1, then please confirm me that person_in_charge_user parameter is the user id of the pernr. This will also help me in resolving this issue because using user id i can get pernr.
    Thanks in Advance,
    Vignesh

  • I wnat to exit firefox sync in other drive but can't find the way to do it.This dirve is common PC,so I have to do that

    I was use firefox sync in the other drive which one is common PC and several man use it.Because it, I want to delect the data in this PC,but I know If i do that,my data will be lose in everywhere. SO I try to exit my account in this drive But I can't find the manage to exit the account.And my password
    was note in this drive that I think is maybe Dangerous for my personal data in friefox sync.
    May I have to delect The firefox sync add-one?

    Do you have specific problems with Flash that you needed to visit the Adobe help pages?
    Make sure that you allow the plugin-container.exe process in the firewall.<br />
    See http://kb.mozillazine.org/Plugin-container_and_out-of-process_plugins
    There are other things that need attention:
    Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
    *Next Generation Java Plug-in 1.6.0_17 for Mozilla browsers
    Update the [[Java]] plugin to the latest version.
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Hot to get the manager

    Hi,
          I am working on HR ABAP. My requirement is to find the manager of a particular employee.
         I am very new to OM. Can any body explain the procedure how to get the manager of an employee.  
         Send the code also so that I can get some idea.
        Any valuable suggestions are appreciated.
    Regards,
    Ram

    hi,
    first get employee Organization unit from PA0001 table..........
    than pass than Org Unit to HRP1001 table....as object id with following info....
    object type = 'o',
    object id = org.unit
    Relationship = top to bottom
    Relat'Ship = Manager
    Ref.objType = Position
    Refobjid is ur required manager id.........
    Reward points if helpful,
    regards,
    Imran

  • HT204074 The "Manage Devices" function not found in iTune

    I cannot find the "Manage Devices" function in the iTune Account Information screen.  Any help?

    The Function not found error is thrown when the OS can't provide the pointer to the function in the library to LabVIEW for some reason. For more information and common solutions see:
    http://digital.ni.com/public.nsf/websearch/44E40ACF1644DB77862562990054D672?OpenDocument
    The only reason I can think of why the first time it works correctly is that the DLL is not correctly clean-up by the close functions. Thus causing a second request for the pointer to fail due to this. (closing LabVIEW will remove the DLL form memory and thus probably clearing the error).
    Hope this Helps
    Kind regards,
    Karsten
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Windows 7 x64 - outlook 2010 - search does not work

    Hi, I have a sbs 2011 essentials, and 5 workstations win 7 pro 64 bits. On one of these Workstation (and not the others), searching for a text in mails in Outlook doesn't work. System tells indexing is in progress. No text can be found (even the send

  • JTextField Focus...Please Help!

    Hello, I have an issue which i hope someone may be able to help me with. What i am trying to do i think is simple but i am still not up to speed on getFocus events so i hope somebody will be able to aid me. I have two text fields and one button on a

  • OSX *****. I'm sick of this crap.

    I don't know what happened, must have been from one of those OSX software updates. But now OSX thinks it's ok to hide all my windows if they aren't part of the active application. So much for being able to watch a video, while working in another appl

  • How to sync music to the ipod 80gb

    it is saying it syncing the song but when i eject the songs are not pulling up

  • Error During Cancelling an incoming payment

    Hi All! kindly find below the error we got during cancelling an in coming payment. "Reconciliation date must be on or after the last posting date for transactions error 3821" Kindly help with it to help us cancelling the doc. Thks R@j..