how to find the second highest salary from emp table?
Answer Posted / sudhakar tripathi
select Max(salary) "2nd_Heigh_sal" from employees where
(salary < select Max(salary) from employees);
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
explain what is mysql? : Sql dba
What is the difference between drop and truncate commands?
what are the differences among rownum, rank and dense_rank? : Sql dba
What is error ora-01000: maximum open cursors exceeded
What is the main reason behind using an index?
What is dynamic query?
What is a unique key and primary key and foreign key?
what are the performance and scalability characteristics of mysql? : Sql dba
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is clustered and nonclustered index in sql?
What are the types of index in sql?
How many types of triggers exist in pl/sql?
What is row_number () in sql?
What are synonyms in sql?
What is set transaction?