display the second highest salary department wise in
employee table

Answer Posted / nagendra maddi

SELECT DISTINCT *
FROM (SELECT deptno, sal,
DENSE_RANK () OVER (PARTITION BY
deptno ORDER BY sal DESC)

RANK
FROM scott.emp)
WHERE RANK <= 2;

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hello sir, i'm persuing my B.tech final year in textile chemistry and have a diploma in electronics and communication...interviewer ask why you should adopt textile chemistry from electronics and communication....please give me the best answer... thank you

1293


can i learn ad. java without learned core java? java is best or .net is best for summer training?

1498


what is the stucture of.net array?

1610


How is the parity flag actually set in the 8085 microprocessor?

1611


sir,i am a 3rd yr student of computer engineering. i need atleast 10 previous year's placement papers of hcl,infosys & wipro. please send me these papers as early as possible.thanx for giving me your precious time.

1566






What is the difference between command line argument and input taking from the user?

1406


how to prepare for an written exam for any type of company?

1910


when air is supplied from larger diameter pipe with some pressure if change diameter to small pipe the pressure increases or not? also what is increased pressureor velocity?

1357


What is meant by STL?

2292


What is candidate key ? What is Alter net key ? & What is foreign key ?

1450


how many gallon in one quseka

1402


I need to know the process to add 100 tapes in ATL. Ho to inicialize them to the system? How is all the process i need to follow> Thanks

1748


Is Diesel staorage tank ( 800 litres) cleaning procedure is available with any body

1595


THESE POSTS ARE FOR THE DURATION OF FIVE YEARS. AFTER COMPLETION OF FIVE YEARS, THE PERSONNEL POSTED AGAINST THESE POSTS ARE LIKELY TO BE CONTINUED IN NIC. CAN Any body say that what it will be happened after 5 years? does they through us out from NIC? Is it a temporary job of 5 years is the probation period?

1488


what is isolator

1578