how to get max salary with employee number by using one select
query and max function ??
Answer Posted / mithilesh gatole
Answer -
select MAX(Salary) from Employee
WHERE Salary <> (select MAX(Salary) from Employee )
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What are the properties and different types of sub-queries?
Mention the 3 ways to get a count of the number of records in a table.
When a primary key constraint is included in a table, what other constraints does this imply?
Can binary strings be used in arithmetical operations?
How to use order by with union operators in ms sql server?
What are difference between Cluster index and Non-Cluster index?
What is db stored procedure?
What is a subquery in a select query statement in ms sql server?
What is an entity-relationship diagram (erd)?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
What is the parse query button used for?
What is a data source file?
Is truncate autocommit?
What are the various editions of sql server 2017 that are available in the market?
Other than truncate statement, which other command can by-pass the trigger on the tables?