how to find the second highest salary from emp table?
Answer Posted / tanmoy
SELECT MIN(sal) FROM (SELECT sal FROM emp ORDER BY sal DESC LIMIT 2) AS a ;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you load multi line records? : aql loader
What is sql scripting?
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
what is union? : Sql dba
Could you please provide oca (oracle 10g) dumps for my certification ?
What is sql clause?
What are the 3 types of behavioral triggers?
What is group function in sql?
What is synonyms?
What is using in sql?
What do you understand by pl/sql cursors?
Does mysql_real_escape_string prevent sql injection?
What is latest version of sql?
How do I add a primary key to a table?
What is difference between inner join and cross join?