how to find nth highest salary

Answer Posted / udathayadav

select * from tablename.aliasname where nth=select
count(sal) from tablename where aliasname.sal<=sal

Is This Answer Correct ?    38 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

905


What is meant by indexing files?

579


How to enter comments in transact-sql statements?

552


What is report server project?

106


Can we perform backup restore operation on tempdb? : sql server database administration

583






What is partitioned view?

523


What keyword you will use to get schema appended to the result set of a ‘for xml’ query?

603


What do you understand by replication in sql server?

575


How to create a scrollable cursor with the scroll option?

501


What is conditional split?

543


Can foreign key be deleted?

528


What stored by the model? : sql server database administration

545


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

1849


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

109


What are commit and rollback in sql?

567