a query to select maxmun 3 salaries of employee table

Answers were Sorted based on User's Feedback



a query to select maxmun 3 salaries of employee table..

Answer / kumari

SELECT TOP (3)with ties empsalry
FROM empsalr

order by empsalry desc;

Is This Answer Correct ?    1 Yes 4 No

a query to select maxmun 3 salaries of employee table..

Answer / neo devan

select max(sal) from emp having max(sal)!=(select max(sal)
from emp where max(sal)!=(select max(sal) from emp));

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Oracle General Interview Questions

What is columnar storage what is the advantage?

0 Answers  


Can group functions be used in the order by clause in oracle?

0 Answers  


What are the different oracle database objects?

0 Answers  


what is difference between table and view? where to use views? thanks in advance!

1 Answers  


How to write an inner join with the where clause in oracle?

0 Answers  






Write a syntax for update query in oracle?

0 Answers  


Explain drop constraint oracle?

0 Answers  


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

0 Answers   Oracle,


What are main difference between Stored Procedure and Functions.

6 Answers   CA, Metric Stream,


How to use like conditions in oracle?

0 Answers  


How to create id with auto_increment on oracle?

0 Answers  


can u send the sql dumps to sivakumarr1987@gmail.com plz help me

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)