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


Please Help Members By Posting Answers For Below Questions

What is use of dbcc commands?

622


How to find the list of fixed hard drive and free space on server?

566


How to access the inserted record of an event?

574


do views contain data ?

580


What is partition index in sql server?

602






Where are full-text indexes stored?

568


What is the maximum length of an alert name?

598


What is a trigger what are the advantages of trigger?

524


How to backup encryption key ?

127


Define clusters?

643


What is the process of normalization?

552


Explain ranking functions?

605


List all the types of user-defined functions?

520


How does recursive cte works in sql server?

524


What are the mathematical functions supported by sql server 2005?

546