how to find nth highest salary

Answer Posted / smitam

select top 1 salary from emp where (salary<(select max
(salary) from emp ))ORDER BY salary DESC

Is This Answer Correct ?    9 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain system rowset functions?

558


Which database stores information about replication?

557


Explain try...catch with sql server?

598


Define ACID properties in a Database?

627


What is built-in/administrator?

576






Why use triggers?

572


What is user-defined inline table-valued function?

517


What is bcnf normalization form?

665


What is optimization and its types?

536


What do you mean by data integrity?

599


What is the difference between createstatement and preparedstatement?

494


What are different types of statement?

525


What is data modeling and Reterminal integrity?

1494


How to include text values in sql statements?

591


Does a sql server 2005 select statement require a from?

580