find out the second highest salary?

Answer Posted / nusrath sultana

select * from emp
where &n=(select count(distinct(sal)) from emp b
where emp.sal<=b.sal)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by joins?

621


normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi

1737


How do we display rows from the table without duplicates?

547


How to export several tables together?

564


How to convert raw data type into text in oracle? Explain

599






How to create an initialization parameter file?

535


What are the differences between interval year to month and interval day to second?

550


What is an oracle data file?

613


What is proxy method?

540


what are archived logs?

1712


What are the ways tablespaces can be managed and how do they differ?

1614


How to insert a new row into a table in oracle?

587


Difference between oracle's plus (+) notation and ansi join notation?

570


what is the need of indexing topic in oracle? where do we use in a Java project? any other option other than using this to get the same result where we use indexing ?

2044


How to define a cusotmer as a supplier in ORACLE R12

1726