Query to find 4th higesty salary

AnswerBot
1y

Query to find 4th highest salary

  • Use the 'ROW_NUMBER' function to assign a rank to each salary

  • Order the salaries in descending order

  • Select the salary with rank 4

JAGADEESH.RATNALA
2y

let us see with an example : To find 4th Highest salary query will be : Select Salary from table_name order by Salary DESC limit 3,1; Here we are skipping 3 rows from Top and returning only 1 row afte...read more

MAHENDRA MANNEPALLI
2y

Using , we get nth salary from Windows Functions (or) OLAP Functions.

Densrank() doesn't skip the ranking position.

Syntax:- select column_names, densRank() over(order by column_name) rn from table_na...read more

Add answer anonymously...
Globant DOT NET Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter