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

After creating the cube, if we added a new column to the oltp table then how you add this new attribute to the cube? : sql server analysis services, ssas

570


State a few properties of relational databases?

664


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

610


What's new in sql management studio for sql server? : sql server management studio

579


What is a trigger? Why we need it?

531






Does sql server 2016 have ssms?

517


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

569


What are the different kinds of ssrs reports?

170


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

621


What is function of CUBE ?

611


What are the differences in Clustering in SQL Server 2005 and 2008 or 2008 R2?

593


How to create a new schema in a database?

553


What are the advantages of sql stored procedure?

539


Can we deploy SSRS reports on our personal website?

123


How do I create a trace in sql server?

515