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 / raju
SELECT NAME ,SAL FROM employee WHERE
SAL=(SELECT MAX(sal)from employee )
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a collation?
List few advantages of stored procedure.
What is in place upgrade in sql server?
How many replicas are maintained for each SQL Azure database?
What is mssql?
What are the different types of sql server replication? : sql server replication
Explain the cursor lock types?
What is stored in the mssqlsystemresource database? : sql server database administration
What are types of storage modes? : sql server analysis services, ssas
What security features are available for stored procedure?
How to rename an existing column with the "sp_rename" stored procedure in ms sql server?
How to change a login name in ms sql server?
Explain can SSRS reports Cache results?
What do you understand by replication in sql server? Mention the different types of replication in sql server.
What is instead of trigger sql server?