how to find nth highest salary

Answer Posted / ajay kumar barik

select a.id from product a where (1= (select count(b.id)
from product b where b.id>=a.id))


It is for all database

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. Tell me your daily activities 2. If sql server installation fails at time installation what will do 3. Where does the sql server installation log details are stored 4. After the installation what will you do for memory configuration 5. What is the difference between SQL max maximum memory and AWE memory 6. How will you configure AWE memory 7. How will setup an email alert for the backup job 8. After the SQL installation what are the jobs will you configure 9. What does –g mean in the sql startup parameter 10. What is the difference between Bulked log and Full recovery model 11. What is the difference between mirroring and log shipping 12. What are the steps to be followed before in-place up gradation 13. After installing the patch the sql server does not start and application team tells to rollback the changes .In this scenario what will you do

2141


What are “lock” hints?

679


How to find the list of fixed hard drive and free space on server?

687


Describe in brief sql server monitoring ways.

664


How fixed length strings are truncated and padded?

636






Can the query output be sorted by multiple columns in ms sql server?

641


What are recommended options to be used while using db mirroring? : sql server database administration

655


How to loop through returning rows?

658


What is an index. What are the types?

657


What are the different sql server versions?

594


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1190


What are 3 ways to get a count of the number of records in a table?

721


What is CTE in SQL

626


Explain triggers?

657


Explain sql server service broker?

615