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


Please Help Members By Posting Answers For Below Questions

What is a db view?

515


how to invoke a trigger on demand? : Sql server database administration

563


How can you find out how many rows returned in a cursor?

548


If a table does not have a unique index, can a cursor be opened on it?

513


List layers of abstraction microsoft architectured to provide relational db through cloud platform ?

161






Explain active/passive and active/active cluster configurations?

624


Explain atomicity?

571


How to see the event list of an existing trigger using sys.trigger_events?

569


How to see existing views in ms sql server?

543


What are the advantages of mirroring?

569


What are the benefits of filtered indexes?

507


What is RMS migrations?

1698


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

3756


Tell me about builtinadministrator?

560


what are the three command line utilities and what are their primary functions?

101