I want to take only 3 ranks of rd

Hello

I have a table called Sample,

SELECT name, sex, treatment of the sample where salary > 10000 order by name;


Name gender pay

Nihar 15000 M
Guna 20000 M
Antony 12000 M
Sujatha F 20000
..............................................
...............................................
.................................................


Now I want to take only 3 ranks of rd.

Result:


Name gender pay

Antony 12000 M



Thank you

Nihar

Hello
If you use the fecility of RESEARCH, you will find many examples. anyway...

SELECT Name,Salary
FROM (
            SELECT Name,Salary, ROW_NUMBER() OVER ( ORDER BY Salary DESC) RN
             FROM EMP
) WHERE RN=3;

See you soon,.

Tags: Database

Similar Questions

Maybe you are looking for

  • Best way to disable several plots on XY-graph?

    Hi all I need to hear here. I have an XY Chart with several plots. Here's how the VI would work. 1. start of program, no parcels or scale is shown. 2. several buttons are available to select who are plotting to TURN (corresponding scale is also ON /

  • What does take to get a simple HP return address label?

    Yes, I have a defective printer. I received the replacement printer, the other day. I was told that I had 15 days to return the defective printer to HP. They gave me a card of e-choice to use to buy the replacement online printer. I got the printer r

  • Message States remove hardware safely

    In the toolbar, background and on the right there is a checkbox go over it and he says "probably delete material. What is this message? I have never seen this? Help, please!  I'm not irritable Lorrie Miller E-mail address is removed from the privacy

  • Read only folders and files on external hard drive

    Windows 7 keeps setting the already existing folders and files on my external hard drive for read only. I used the Properties dialog box to remove read-only from the folder and all subfolders and files. This seems to run correctly, but of course, thi

  • PleaseWaitPopupScreen - more flexible approach?

    Hello I found a good tutorial by Peter Strange located here on the creation of a pop-up screen. I had a question about the implementation of this in a real-world example, I need my unique PleaseWaitPopupScreen to contain a class derived from network.