how 2 find out nth salary.plz write sql qurires

Answer Posted / nagapawan

iam taking table name as emp. this is to find out nth salary
eg: select * from emp
where n-1 = (select count(*) from emp e
where emp.salary<e.salary)

in place of n-1 you can keep zero for first hight salary
and 1 for second hightest salary.....etc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create automation frame work ?

1595


.In languages testing, what is the fixed part and changing part?

1655


What are the interview question on insurance domain in manual testing

19224


How to explain the Insurance project in the interview?

1096


wht is Manual Testing Frame work

1663






diff b/w desktop based testing & web application testing

1584


what types of testing have u done in ur project?and expalin it detail?

1546


Can any body tell me in real time how cookies testing is done. And please tell me the steps.And for cookies testing test cases is needed.

1618


Password is having 6 digit alphanumeric then what are the possible input conditions?

702


Can anyone tell me about banking project? abt the transactions? the flow?

1522


Login screen with Username, Password input fields,remember me check box,sign in and reset button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.

2292


What are the cases why parameterization is necessary when load testing the Web server and the database server?

1701


Why do you need to parameterize fields in your virtual user script?

1666


Hi, what do you mean by internal auditing? what are the things they do in internal auditing?what they review? THNX in Advance

1662


Have you prepared traceability matrix and how to prepare it?

1601