An employee table, with the columns id, name, sal and dob.
Query to select emp names of all highest salaries(there are
4-5 people having the same salary which happens to be the
highest).
Answer Posted / anil
select name,sal from employee where sal in(select top 5 sal from employee order by sal desc)
| Is This Answer Correct ? | 7 Yes | 7 No |
Post New Answer View All Answers
What are click through reports?
Mention the different types of triggers?
How to get a list of all tables with "sys.tables" view in ms sql server?
What is deploy, process and build? : sql server analysis services, ssas
What is plan freezing?
What is the difference between Clustered and Non-Clustered Index?
How to concatenate two strings in SQL Server.
Mention what are the different types of ssrs reports?
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
What is a subquery in a select query statement in ms sql server?
What is sql injection? How to protect against sql injection attack?
What is mean by dml?
What is function of ROLLUP ?
What is triggers and its types?
What is a functions and types in sql server?