how to find the second highest salary from emp table?
Answer Posted / sankar sasmal
select distinct sal from emp e where 2=(select count(distinct sal)from emp s where e.sal<=s.sal)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the maximum number of columns in sql table?
What are the advantages of normalization?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What are tuples in sql?
How is a process of pl/sql compiled?
What are the different types of tables in sql?
What is difference between stored procedure and trigger?
what are null values? : Sql dba
What is gpt format?
What is where clause in sql?
What is varchar data type in sql?
how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc
How does an execution block start and end in pl sql?
What is java sql connection?
what is the difference between myisam static and myisam dynamic? : Sql dba