Write a query to find second highest salary of an employee.

Answer Posted / jeff

select max(salary)
from Emp
where rownum < 2;

Is This Answer Correct ?    3 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql and explain its components?

602


what is the difference between truncate and delete statement? : Transact sql

550


Is natural join same as inner join?

507


Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

2070


Can a select statement fire a trigger?

662






what are string data types? : Sql dba

514


What do you mean by field in sql?

538


How do you create a unique index?

574


what is blob? : Sql dba

564


Is trigger a stored procedure?

507


What is a procedure in pl sql?

550


How do you write an inner join query?

517


what are the join types in tsql? : Transact sql

576


ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..

2010


what are rollup and cube in t-sql? : Transact sql

661