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

What are the differences between lost updates and uncommitted dependencies?

625


What is an indice?

666


write an SQL query to list the employees who joined in the month of January?

1261


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

703


Explain acid?

695






What do you understand by user-defined function in the sql server?

587


What is sql or structured query language?

767


What the different types of Replication and why are they used?

627


Do you know clustered and non-clustered index?

630


What is indexing a document?

639


What’s the use of custom fields in report?

648


What is the difference between inner join and equi join?

573


What is always encrypted?

596


In which format does an image save in SQL Server database ?

687


What is the difference between ddl,dml and dcl commands?

689