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 do you mean by query optimization?
What's the difference between a primary key and a clustered index?
How subquery works in sql?
What is view? Can we update view
what's the difference between a primary key and a unique key? : Sql dba
what is subquery? : Sql dba
what are the differences between procedure-oriented languages and object-oriented languages? : Sql dba
What does pl sql stand for?
What is right join sql?
What is pl sql in dbms?
What are the benefits of pl sql?
Can we rollback truncate?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
what are local and global variables and their differences? : Sql dba
what is a cursor? : Sql dba