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 / kishore kumar

Select ename from emp where sal=(select max(sal) from emp)

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pre-defined functions in the sql server?

518


What happens if null values are involved in bitwise operations?

603


What is the use of set nocount on/off statement?

626


How important do you consider cursors or while loops for a transactional database?

527


What it means to be triggered?

496






Tell me what are the advantages of using stored procedures?

566


What is 'Join' and explain its various types.

627


Explain features and concepts of analysis services?

497


What is the sql server 2000 version number?

548


whats the maximum size of view state??

1718


What are acid properties of transaction?

549


What is intellisense?

583


What are the different types of columns types constraints in the sql server?

523


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

629


What is a trigger and its types?

524