write query for fourth maximum salary from employee table
Answer Posted / avanish kumar
if you have a table emp and you have to find fourth maximum
salary from emp table then you will have to write this
query.....
select top 1 sal from (select top 4 * from emp order by sal
desc) as sal order by sal
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is sql server is free?
Is it safe to delete log files?
wat wil hapn if we give the both read and deny read permission to user?
How to select some specific columns from a table in a query in ms sql server?
How adventureworkslt tables are related?
How to perform backup for certificates in sql server? : sql server security
Is it possible to create trigger on views?
What happens if the update subquery returns no rows in ms sql server?
What is data modeling and Reterminal integrity?
How real and float literal values are rounded?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
Explain in brief how sql server enhances scalability of the database system?
How to rename an existing table with the "sp_rename" stored procedure in ms sql server?
How to retrieve error messages using odbc_errormsg()?
What does man by sql wildcard characters in sql server?