i want to know about mr.b.kotravel......who has answered
for second maxmium salary from employee table

Answers were Sorted based on User's Feedback



i want to know about mr.b.kotravel......who has answered for second maxmium salary from employee t..

Answer / mohan

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

Is This Answer Correct ?    2 Yes 0 No

i want to know about mr.b.kotravel......who has answered for second maxmium salary from employee t..

Answer / surya

select * from emp where 2-1=(Select count(distinct(sal)
from emp e where emp.sal<e.sal and ename='mr.b.travel)

Is This Answer Correct ?    0 Yes 0 No

i want to know about mr.b.kotravel......who has answered for second maxmium salary from employee t..

Answer / obulesu

select * from (select e.*,dense_rank() over(order by sal desc) r from emp e) where r=2;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How to run the anonymous block again?

0 Answers  


How can we force the database to use the user specified rollback segment?

0 Answers  


How to use "in" parameter properly?

0 Answers  


How to select the name of employee who is getting maximum sal with out using subquery

15 Answers  


What is the purpose of init.ora. ? how many init.ora exist in oracle installation? suppose there are 3 database on one oracle server, how many init.ora do I have? what are various database objects? how will you identify memmory related performace issue in oralce? any idea about basic architure difference of oracle and db2? comment on which is better , with reasons? what is a fuction based index? is it recommended to use the same. ? what is global temporay table? what is teh signification of the parameter session_cached_cursor ?

1 Answers   HDFC,






Can objects of the same Schema reside in different tablespaces.?

3 Answers  


What is PL/SQL ?

0 Answers  


What are the differences between blob and clob in oracle?

0 Answers  


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

0 Answers  


Explain the use of inctype option in exp command.

0 Answers  


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

0 Answers   Wipro,


What is raw datatype in oracle?

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)