Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / abhay

Select Max(Sal)
From Emp E
Where E.Sal < (Select Max(Sal) From Emp)

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should I use mbr or gpt?

530


what is an index? : Sql dba

511


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

502


What are analytical functions in sql?

527


what are myisam tables? : Sql dba

539






Why do we use partitions in sql?

532


Show the cursor attributes of pl/sql.

598


What is foreign key in sql with example?

504


What is normalisation and its types?

538


Is sql microsoft?

537


What is Difference Between Unique and Primary Key Constraints?

594


How to return an array from java to pl/sql?

578


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

2052


How many types of cursors supported in pl/sql?

580


what is a record in a database ? : Sql dba

559