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
What is query and its types?
what is the main function of a query parameter?
what is a correlated sub-query? : Sql server database administration
Explain trigger and trigger types?
Do you know how to send email from database?
How to edit table in sql server 2017?
Explain what is row_number function?
How do I install only the client tools of sql server 2000?
Is it possible to replicate data from sql server to oracle? : sql server replication
What does COMMIT command do?
Explain what is “asynchronous” communication in sql server service broker?
If a table does not have a unique index, can a cursor be opened on it?
Explain the microsoft sql server delete command?
How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?
What is the difference between clustered and non-clustered indexes in ms sql server?