how to find nth highest salary
Answer Posted / sikindar
select * from emp where sal=(
SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal));
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
I have a table Events Events containing cardno,time,id,name--each id has a cardno my requirement is every day each employee swipe the card several times i want to calculate first and last time of each card the output should be name 1 2 6 7 in out in out holiday holiday xxx 09:30 06:30 09:40 06:45 where 1,2...... are dates for example january 1,2, etc. 6 and 7 are saturday and sunday how it is posssible
How to configure odbc dsn with different port numbers?
How to drop an existing stored procedure in ms sql server?
what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration
Explain the use of containers in ssis and also their types?
How to copy data from one table to another table?
What are the 2 types of classifications of constraints in the sql server?
What is a not null constraint?
What are the dmvs? : sql server database administration
you added a row to a view, but the row is not shown on the view. Explain how this can happen, and how you can remedy the situation
How to use go command in "sqlcmd"?
How many types of attribute relationships are there? : sql server analysis services, ssas
What is 1nf 2nf?
What is the Disadvantage of indexed sequential file.
How to disconnect from a sql server using mssql_close()?