how to find the second highest salary from emp table?
Answer Posted / nitin
select max(salary) from emp where salary<>(select
max(salary) from emp);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sqlerrd?
explain the advantages and disadvantages of stored procedure? : Sql dba
What do you mean by “trigger” in sql?
What is the difference between left join and right join?
Mention what are the benefits of pl/sql packages?
Can I create table without primary key?
how can we take a backup of a mysql table and how can we restore it. ? : Sql dba
Explain ddl statements in pl/sql?
how are mysql timestamps seen to a user? : Sql dba
What is #table in sql?
Why is partition used in sql?
What is a full join sql?
How can you select unique records from a table?
How does postgresql compare to "nosql"?
Explain alias in sql?