find out the third highest salary?

Answers were Sorted based on User's Feedback



find out the third highest salary?..

Answer / lakshmi

select sal from emp
where sal = (max(sal) from emp
where sal < (max(sal) from emp
where sal < (max(sal) from emp)));

Is This Answer Correct ?    94 Yes 135 No

find out the third highest salary?..

Answer / ashutosh pandey

select sal from emp
where sal=(select min(sal) from emp
where sal>(select min(sal) from emp
where sal>(select min(sal) from emp);

Is This Answer Correct ?    69 Yes 204 No

Post New Answer

More Oracle General Interview Questions

how to find out largest value in a table

2 Answers  


How do you increase the OS limitation for open files (LINUX and/or Solaris)?

0 Answers  


what is unique key?

14 Answers   Amazon, Cap Gemini, Infosys, Wipro,


i have a table and it has constraints and i want to get "ALTER TABLE table_name ADD CONSTRAINT constraint_name constraint type" this code must be in string type please help me if you want, i can give more explainings

2 Answers  


Is rowid unique in oracle?

0 Answers  






How to loop through a cursor variable?

0 Answers  


1.display list of all users from ur data base.what is the query?

3 Answers   CGI, IBM,


Design database draw er diagram for a certain scenario ?

0 Answers   Keane India Ltd, TATA,


In oracle there is column command, how will you explain that?

0 Answers   Aricent,


Create table Employee ( Employee_Id varchar2(8) Constraint emp_id_pk primary key, FirstName varchar2(50), LastName varchar2(50), DeptID Number(5) Constraint dept_id_fk Foreign Key(DeptId) References Department(DeptId) ) Error I am getting: Constraint specification are not allowed here

2 Answers  


How can you use check constraints for self referential integrity?

0 Answers  


What are the predefined tablespaces in a database?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)