how to find nth highest salary
Answer Posted / deepak dabi
I Think this is the best solution ever i have seen ,i
appriciate if you prove me wroong on this so,otherwise i got
all other a bit wrong ,in many cases please try this....
"SELECT distinct(sal) from emp order by sal desc limit 2,1"
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to check if stored procedure is running in sql server?
Explain primary key and foreign key constraints?
What is a transaction and why is it important?
How do you delete duplicate records in sql server?
which backup strategy you are following at ur company
How can we check the sql server version?
How to stop log file growing too big?
How to view the error log for any specific instance? : sql server database administration
What is @@rowcount in sql?
Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.
What is the language structure to add a record to a table?
What is used to replicate sessions between instances in coldfusion clusters?
Can we deploy SSRS reports on our personal website?
How do I partition a table in sql server?
What is database dimension? : sql server analysis services, ssas