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 / reshu singhal
select name from employee where sal = (select max(sal) from
employee)
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How can you know if the row fetched from cursor is still valid in underlying table?
What is the index requirement in SQL Azure?
Determine when an index is appropriate?
If the job running very slow what is the action you do
How to defragment table indexes?
What is table join?
What is user-defined function?
What is a data collection table?
Write SQL queries on Self Join and Inner Join.
How do I run sql server 2014?
What are the disadvantages of primary key and foreign key in SQL?
What is difference between commit and rollback when used in transactions?
What is sql server used for?
What is etl - extraction, transformation, and loading?
How to generate create function script on an existing function?