write query for fourth maximum salary from employee table
Answer Posted / ajay roy
The Correct answer is ---
select salary from employee aa
where 4=(select count(*)from employee bb
where aa.salary<=bb.salary)
Thanks Elumalai.k
Top Keyword returns the top(first) row not the max record
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Define full outer join in sql server joins?
How many joins in sql server?
Can the “if update (colname)” statement be used in a delete trigger?
Can you explain important index characteristics?
What is the latest version of microsoft sql server?
What is open database communication (odbc)?
How the authentication mode can be changed?
What is sub query and its properties?
what is the different types of backups available in sql server? : Sql server database administration
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
What is the ‘fillfactor’?
Difference between connected and disconnected database in .net with sql server?
What is transaction server explicit transaction?
What is “asynchronous” communication in sql server service broker?
Explain what role entity and relationship play in an ER diagram.