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 / subrata sinha roy
SELECT NAME ,SAL FROM employee WHERE
SAL=(SELECT MAX(sal)from employee )
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How to find related tables in sql server?
Can you explain the disadvantages/limitation of the cursor?
What are functions in the sql server?
What stored by the tempdb ? : sql server database administration
How to create a dml trigger using create trigger statements?
Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio
How are the exceptions handled in sql server programming?
How do I delete a sql server database?
What are the benefits and tasks of object explorer? : sql server management studio
What is stretch database in sql server?
List few advantages of stored procedure.
Is it possible to have clustered index on separate drive from original table location?
You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?
What is the need for indexing?
Find nth lowest salary or get nth lowest salary?