Please get the 4 th maximum salary from a table without
using any sql keyword (TOP,MAX are mot allowed)
Answer Posted / v rajkumar
select salary from Emp a where 4 = (select count(distinct
(salary)) from Emp b where b.salary>= a.salary)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is optimization and its types?
Can you explain full-text query in sql server?
What are the restrictions that views have to follow? : SQL Server Architecture
Explain error and transaction handling in sql server?
Explain what is row_number function?
Can you edit the .rdl code associated with a linked report?
What is the process of indexing?
What is unique key constraint?
What is difference between delete and truncate commands?
How is SQL Azure different than SQL server?
Explain what are the database objects? : SQL Server Architecture
What is faster join or union?
Which is better statement or preparedstatement?
What do you mean by 'normalization'?
What's the information that can be stored inside a bit column?