how to find nth highest salary
Answer Posted / mohd javed
BY Tested in Postgres SQL : javedcc@gmail.com
select * from tablename as aliasname where (nth)= (select
count(sal) from tablename where aliasname.sal<=sal)
| Is This Answer Correct ? | 8 Yes | 16 No |
Post New Answer View All Answers
what happens on checkpoint? : Sql server database administration
How to skip remaining statements in a loop block using continue statements?
What is dirty page?
can a database be shrunk with users active? : Sql server administration
Is the log file is a part of file group?
Explain isolation levels that sql server supports?
What is transaction server consistency?
How to maintain a fill factor in existing indexes?
What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
Explain datetimeoffset data type in sal server 2008?
Explain about the command-line tool SQLCMD?
Why transaction is important?
What is the use of “join” in sql server?
Describe in brief databases and sql server databases architecture.
What are the filtered indexes?