Write a query to find second highest salary of an employee.
Answer Posted / amol londhe
Use the below Query:
Select Max(salary) from Emp
Where Max(salary) < (Select Max(salary) from emp
where emp-no=101);
| Is This Answer Correct ? | 10 Yes | 18 No |
Post New Answer View All Answers
What is the life of an sql statement?
how to install mysql? : Sql dba
How can get second highest salary in sql?
how to run 'mysql' commands from a batch file? : Sql dba
Is a table valued function object?
Is sql sequential or random?
Which function is used to return remainder in a division operator in sql?
How many types of relationship are there?
what are the differences between binary and varbinary? : Sql dba
What is the difference between pl and sql?
Is left join faster than inner join?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
What is informix sql?
what are the advantages of mysql in comparison to oracle? : Sql dba
Explain what is an index?