how to find the second highest salary from emp table?
Answer Posted / prasanna
select A.* from employee A where 1=(select count(distinct
B.sal) from employee B where B.sal>A.sal)
| Is This Answer Correct ? | 63 Yes | 71 No |
Post New Answer View All Answers
Is pl sql still used?
Why self join is used in sql?
Does pdo prevent sql injection?
How to find 3rd highest salary of an employee from the employee table in sql?
what are the join types in tsql? : Transact sql
what is the difference between a local and a global temporary table? : Sql dba
Why do we use procedures?
what are the differences between require and include, include_once and require_once? : Sql dba
What is multiple partition?
What is synonyms?
What is difference between sql and excel?
What is assignment operator in pl sql?
what is recursive stored procedure? : Sql dba
What is procedure and function in sql?
Is primary key always clustered index?