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

3. Adapt your query in (2) above so that only post codes with more than twenty orders are displayed.

0 Answers   Wipro,


How to create a table in a specific tablespace?

0 Answers  


State and explain the different types of data models?

0 Answers  


What is the difference between SQL, DDL, and DML?

7 Answers   BeBo Technologies, Wipro,


What different of iner joint & outer joint with example

4 Answers  






What is the difference between sharding and replication?

0 Answers  


What is an oracle function?

0 Answers  


How to write date and time literals in oracle?

0 Answers  


Explain the difference between a procedure and a function? What do you understand by those terms?

0 Answers  


What is a cursor variable?

0 Answers  


How to shutdown your 10g xe server?

0 Answers  


What is the best way to do multi-row insert 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)