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
How to create a new schema in a database?
List some major differences between triggers and stored procedures?
Define a cross join?
Do you know how to make remote connection in database?
What are the restrictions applicable while creating views? : SQL Server Architecture
What is the command to change the recovery model?
What is an expression in ms sql server?
What are the differences between stored procedure and view in sql server?
How many types of stored procedures are there in sql server?
How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?
What is tablesample?
Explain identity in sql server?
Why use “in” clause in sql server?
how can u get last observation in an unknown dataset ?
What is deploy, process and build? : sql server analysis services, ssas