how to find nth highest salary
Answer Posted / brahma
select * from table_name t1 where (n-1)=
(select count(distinct(column_name)) from table_name t2
where t2.column_name>t1.column_name)
| Is This Answer Correct ? | 101 Yes | 47 No |
Post New Answer View All Answers
You have a table with close to 100 million records recently, a huge amount of this data was updated now, various queries against this table have slowed down considerably what is the quickest option to remedy the situation?
What is the difference between DATETIME2 and DATETIME?
What is efficiency data?
What is the purpose of forms?
What is bit data type?
What is the difference between a local and a global temporary table?
How network traffic be reduced by using the stored procedure?
How to create new tables with "create table" statements in ms sql server?
What are the difficulties faced in cube development? : sql server analysis services, ssas
What does sql server mean?
How to delete exactly duplicate records from a table?
What is raid and what are different types of raid levels?
Explain trigger classes i.e. Instead of and after trigger?
Insert syudents details in table.Current system date &time insert into joining time.How do insert?( in sysdate only return current system date how do add time?)
Can binary strings be used in arithmetical operations?