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 integrity in sql?

547


How to download oracle sql developer?

650


How do you take the union of two tables in sql?

509


What is indexing in sql and its types?

535


Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

1711






Are views faster than queries?

532


Does pl/sql support create command?

572


How many sql are there?

503


What are packages in pl sql and also explain its advantages?

520


Describe different types of general function used in sql?

525


Can you call pl/sql package functions from within a fast formula?

558


what are aggregate and scalar functions? : Sql dba

542


Is grant a ddl statement?

447


how to get a list of all tables in a database? : Sql dba

504


What are the different dml commands in sql?

579