how to calcuate the second highest salary of he employee

Answer Posted / udhayakumar

select salary from (select salary from emp order by salary
desc) where rownum=2;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between clustered and non-clustered index in sql?

733


What are the parts of a basic sql query?

722


What are different types of statements supported by sql?

818


Why do we use joins?

775


How to process query result in pl/sql?

773






What is trigger in pl sql with examples?

719


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

3579


Is sql harder than python?

820


What is sql stand for?

743


What is a primary key? Explain

736


What is sql partition function?

801


what is innodb? : Sql dba

762


How delete all data from table in sql?

753


how to fetch alternate records from a table? : Sql dba

824


Explain table and field in sql?

780