write a query for the fifth highest salary?

Answer Posted / nitin bisht

SELECT empSalary FROM empTable e1 WHERE (5 = (SELECT
COUNT(DISTINCT (e2.empSalary))
FROM empTable e2 WHERE e2.empSalary >= e1.empSalary))

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which three commands cause a transaction to end?

604


Explain various types of locks in a transaction? Which is better and why?

611


Explain transaction manager?

627


What is relational database with example?

552


Explain file manager?

622






Given a table of Player which contains Sno and player name, write a query which finds all possible Table Tennis doubles pairings.

933


What are database connection details?

654


What are the disadvantages of views in a database?

549


First input columns brand, mt, re values are ov, 1,re vg, 2,re wu ,3,re. Second input columns are brand, mt, cx their records are ov,4,vg ,5,cx Wu, 6,cx and third input columns brand, mt, rt values are ov,7,rt vg, 8,rt wu, 9,rt but my output is brand, re, cx,rt values are ov, 1,4,7 vg, 2,5,8 wu, 3,6,9

1314


What is a super key?

636


Explain the record term used in database.

670


A design problem was given in which I was supposed to make a design for the data base for a given problem.

565


What is the Difference Primary key and Unique Key

590


How to implement database security?

541


What does new grouping sets enables you to do?

606