View the name of the person who got pay MAX() of all employees and the amount of salary without the aid of a subquery

The table is the table of the sample already provided to the user 'hr' to oracle. The structure of the table is:

NameNull valueType

--------------                        -------- ------------

EMPLOYEE_IDNUMBER (6) NOT NULL
FIRST NAMEVARCHAR2 (20)
LAST_NAMEVARCHAR2 (25) NOT NULL
E-mailVARCHAR2 (25) NOT NULL
PHONE_NUMBERVARCHAR2 (20)
HIRE_DATEDATE NOT NULL
JOB_IDVARCHAR2 (10) NOT NULL
SALARYNUMBER (8.2)
COMMISSION_PCTNUMBER (2.2)
MANAGER_IDNUMBER (6)
DEPARTMENT_IDNUMBER 4

So I wanted the result to display the 'FIRST_NAME' of the person with the maximum salary of all employees and the salary of this person "Max (Salary)".

I had the answer to the following query:

Select first_name, salaries of employees

where wages (select max (salary) of employees);

But I wanted to know if there was another way to get the results without using subqueries? Thanks for your help. Appreciate it.

Use the DUNGEON:

Max (first_name) SELECT first_name from Dungeon (dense_rank last order of salary).

Max (salary) salary

of hr.employees

/

FIRST NAME SALARY
-------------------- ----------
Steven 24000

SQL >

SY.

Tags: Database

Similar Questions

  • can we all see a pdf file that has been made public in order to send, or just the person who got the link in an e-mail?

    I had to send a pdf of my bank statement to my tax guy but I was away from my computer and I have a windows phone and was able to go on the website of the Bank and use adobe acrobat to send it, but to send acrobat made me choose "make public" therefore my notice able to everyone or just who ever clicks on the link in the email I sent? the only one I have the email was my tax guy so he is the only person that can see right?

    It would take the link to access your file, and Adobe only makes the public link. At this point, it sounds like if only you and your tax guy have the link.

    Note that if you are worried, you can turn off sharing on this file once your tax guy downloads.

    Hope that answers your question.

  • Comprehensive policy in VMware View 3.0.1 no matter who got the job

    We strive to disable access to the local drive and the only way to it is by loading the models of global policy of VMware in our Active Directory.  We did tis and the Active Directory team ensure that the vms and the user are policy assigned to them. However VMware policy I never see in the local politics of the vmwhen I have VMware view connection.

    We disable the local drive and obivous still see them.  Any who do know another way of disabling the local disk access or know what I could do bad on the setyp of world politics.  It did not work on version 3 or 3.0.1

    Hi Paul,.

    disable the local disks of VMware strategy within the ADM file (client.adm) affects customer theView. So, this means that you must apply the policy to the connected device and is a member of an actress Directory domain. It is also a political base user and should be set to the OU where the user account is in or granted to the user.

    If you want to control at the peripheral level (agent, Virtual Office) based readers, you must use the Active Directory policy for this.

    In the screenshot below, there was no policy applied:

    Now, I put the standard Active Directory policy. This rule is computerized and must be applied to the OU where the virtual office resists in.

    Now readers are not visible to the user, not mapped...

    I hope this helps.

    Thank you

    Christoph

  • I gave a comuter the person who owned it died. How can I change the user name and password?

    A few months ago, I gave a comuter the person who owned it died. The window indicates Micrsoft Window XP Professional-HP. My problem is that I do not have access on behalf of users and password. What should I do?

    Hello

    Many on this forum suggests that when you "inherit" a PC, you should do a clean install of Windows to delete the unwanted "baggage" that the previous owner has left behind. For example (but not limited to) viruses and criminal and illegal downloads. Such a procedure will reset all the passwords anyway. The PC may have a factory reset mechanism still intact. Visit the manufacturer website for more information, or we do know the number of brand, range and model of your PC for assistance.

    If you are using XP Home Edition, the built-in Administrator account probably doesn't have a defined password. You can start in safe mode, where this account will be selectable when connecting. It allows to connect and change the password of any other connection.

    To start in safe mode, keep hitting F8 twice a second after turning on the PC until you get the start menu where safe mode is selectable by the up/down arrow keys, and then press ENTER.

    If you are using XP Professional, try to connect using the built-in Administrator account. You don't need to do it in safe mode (although you can if you wish). If your normal login screen is a display of the user symbol and hit ctrl-alt-del twice to get to login to text entry. Type administrator as the user name and try a blank password.

    See also http://support.microsoft.com/kb/321305

    Other than the foregoing, this forum has a policy of unknown passwords

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

    Tricky

  • When I right click on the name of a person on facebook, properties is not in the list.

    When I right click on the name of a person on the Yearbook, the list doesn't have the properties in it, works of internet explore well but I can not get the properties in firefox.

    Do you mean the properties of an image than previous versions of Firefox in the context menu?

    For images, this element has been replaced by 'View Image information'.

    For other data, you can watch this extension:

  • in R12, we create magazines... Once created newspapers, we approve it. Then, there are some workflows processed will be made. Meanwhile, newspaper notification will be sent to the contractor of the person who throws the newspaper.  now that I could f

    in R12, we create magazines... Once created newspapers, we approve it. Then, there are some workflows processed will be made. Meanwhile, newspaper notification will be sent to the contractor of the person who throws the newspaper.  now, I could find the type of item for this workflow is: GLBATCH but you want to know the complete workflow process. for this I need wft file name.  Please tell us how to get the wft file.

    Workflow type: sheet

    Hello

    I ran these commands from a remote session (PuTTY, for example):

    CD GL_TOP/patch/115/import/US $

    grep 'ITEM_TYPE "GLBATCH" ' * wft

    I don't think this information is found in any table.

    Kind regards

    Bashar

  • How can I set up a form for a person to fill in the name of another person?

    I'm implementing a form in which a person is asked to fill out the form to someone else. Basically, we ask people if they are still our first contact. If they are, it is a confirmation of the simple blind shape. If they don't, ask them to please tell us who. While it will take them to a form where they can tell us who is the new contact. However, I do not want cookies for the new person to be assigned to the person who filled out the form (like who would mess then with segmentation, scoring lead / feed, etc.). We must also see who is the person filling out the form, so that we know which replaces the new person. So, we will need to collect the address name or email of the person filling out the form, in addition to the name and address of the person that they add email.

    I know that this is possible, as in a previous company, we have a form that has been used internally to add those who have called for requests for, so that we could catch them as 'submit a request' as if they had just completed a form. For example, I would like to fill out the form after someone requesting product information, but the online behavior of this person would not be attributed to me even though I filled out the form on my computer. Unfortunately, I don't remember how this was put in place. Does anyone have any ideas on how this could be adjusted upward?

    Hi Abby,

    To do this, the easiest method is to set up two forms:

    1. The first form is your primary contact, who will submit to the secondary email address and additional contact information for the secondary contact. You can also include a field (hidden or not) for the primary contact if you want to record the activity of presentation of this form, but functionally, it is not necessary.
    2. A second form that will accept e-mail address of the secondary contact and any other contact information you want to capture through this process.

    The thing is that, once you have these two forms saved, you add a form processing step to the first form called Post data to the server. In this step, you fill in the details for the second form, including making sure to map the secondary e-mail address field on the formula 1 to the e-mail address field main form 2. The URL must be the action url POST for the secondary form, you can get the details of integration. You also need to add your SiteID and the form name and also a variable to disable cookies for this presentation (elqCookieWrite). The final URL should be something like this:

    https://s1886.t.Eloqua.com/e/F2?elqSiteID=1886&elqFormName=Alt2&elqCookieWrite=0

    • My organization is 1886, you will need to replace it with the code of your Site
    • My name of the secondary form is Alt2, so you have to replace with your name of secondary form
    • elqCookieWrite = 0 provides the secondary form will not attempt to associate the session with the ElqGUID (cookie)

    In the secondary form, make sure you have updated contact - form dataprocessing step.

    Now when submit form 1, you will see a presentation to both forms, and contact information submitted to form 2 creates a new contact (or updates an existing one) with no link with the course/session cookie used to submit the form 1. You can add these contacts to a shared list, enter them in a separate campaign or program or something else, you could do a presentation of normal form.

    One caveat to remember is that as this person has not submitted the form, you have collected not technically no permission to contact them, you need to set some rules will apply in your area (your use case seems to be for existing customers which is usually OK, but you should still check).

    Hope this helps,

    Richard

  • Hi, I have adobe CC for teams, a member of the team has problems, opening indesign, asked for a serial number, ive checked on our admin account and it is one our our registrants 'members '. I was not the person who created this original so I'm a little

    Hi, I have adobe CC for teams, a member of the team has problems, opening indesign, asked for a serial number, ive checked on our admin account and it is one our our registrants 'members '. I was not the person who created this original so I'm a little lost, I can't seem to find the serial numbers on my account and it seems like we don't have the qualified products? can you help me?

    Hello

    We checked the details of your team, all seats are assigned correctly.

    Now, there are a few details that we need in a private Message so that I can help you properly.

    Name of the user:

    User email:

    In the meantime, try it out below mentioned links.

    [Note: the details we need is critical, make sure you send by private Message only.]

    Thank you

    Atul Saini

  • I'm the only person who feels suckered in save my PDFs in iBooks?

    I'm the only person who feels suckered in saving a PDF in iBooks?

    Probably not, but if you need help with something specific, you need to describe your problem.

  • Is it possible to configure iOS (iPad) to allow a gesture "tap" replace the "swipe" gesture  We have a disabled person who can "type", but cannot "drag."

    IOS (iPad) can be configured so that a "tap" gesture can replace the gesture of "swipe"?

    We have a disabled person who can make the move "tap" but can't make a gesture of 'swipe' successfully.

    We know there are lots of things blow that imagine us that a tap on the right side of the screen would replace the kick from the right to the left, and so on for the other sliding directions.

    It should be possible to use AssistiveTouch for this. I have not explored fully, but it seems that you can create a menu of actions that you may need, and use the AssistiveTouch menu button to control what gesture is used for the next take. Creating click options, by scanning left and forehand would suit your username.

    See using AssistiveTouch on your iPhone, iPad or iPod touch - Apple Support for more details.

    TT2

  • Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remem

    Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remember is this another open window and asked me to choose 'something' (an icon or banner or?), I thought I have to click on an element (I guess I should read all clearly). Firefox updated to 3.6.4, but it also inserted some sort of what might be called a banner? But it does cover only partially the half right of my 3 toolbars at the top of the Firefox window. It cannot be used to something else because it's just a mess of colors and unknowns, except for what looks like a 'top' and what I recognize as an icon of Firefox (but only partially visible)! Now, what he does, it's partly hide this part all the toolbars and they are difficult to read and to do to turn this 'thing' impossible to understand, if I keep to? I can't find in any case to remove it or use it? But since the icon of Firefox is about it, I think you need to know what it is and how trash. I'm sorry for this accident caused my my inattention, but I'm not much of a computer person - HELP! Thanks for any help. Judi

    This has happened

    Each time Firefox opened

    Today is Thrsday June 24, 2010

    The only thing I can imagine: it's a character.

    Tools-> Add-ons-> Themes
    Here should be the character (light theme)
    and a button 'delete '.

    Click on it (delete button), and he (Persona, this mixture of colors) should disappear instantly.

    This help you?

  • Try to log back on IPAD, but the person who gave it to me a few years ago, decided to change the apple (ex-husband) ID so I should he trashy or is there a way that I can get

    Try opening a session back on IPAD 4, but the person who gave it to me a few years ago, decided to change the apple (ex-husband) ID, so should I trash or is there a way I can get in without using his information?

    Before you give, sell, or all the iDevices like Apple computer trading

    models, they must be separated with the owner of the user and the owner of the account IDs.

    What to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

    So if it had not been made, the original owner has to make.

    You may not can someone at Apple store; There may be

    other modes of action if the owner has died; only one

    Member of the family with legal authority, & documentation

    could do in special circumstances. The safety is part of

    a theft and deter identity. Sorry for the inconvenience.

    Good luck in this case!

  • who got the same IP as me

    Walter, who got the same IP address, announce and see on satellite that people everywhere got my address. Need urgent HELP Please! , * E-mail address is removed from the privacy *.

    What can I do? Can I ask for identity theft or what? Thank you

    This forum is for Microsoft Security Essentials.

    Please contact your ISP for assistance in this matter.

  • always get the files "prohibited" a a person who has been added to "sender".

    I always get "Prohibited Files" of a person who has been added to "sender". I tried for a month to get these files. They are very important, I need these files. This is very aggravating. HOW CAN I OPEN THE FILES?

    Hello

    ·         What happen when you try to open the files?

    ·         When exactly do you get the message?

    ·         What exactly do you mean by prohibited files?

    Response with above information to better help you.

  • I'm the only person who uses these forums?

    I'm the only person who uses these forums?

    Yes...

    You ask a stupid question, you give a stupid answer...

Maybe you are looking for