Featured Post

How to Integrate Google Tag Manager with Drupal 9 - An Easy Step-by-Step Tutorial

  Marketers are always seeking new ways to elevate website engagement and maximize interactivity. Yet, managing the countless third-party in...

How to find second highest salary in SQL

There are many ways to find second highest salary of Employee in SQL, you can either use SQL Join or Subquery to solve this problem. Here is SQL query using Subquery :

SQL Query:

select MAX(Salary) from Employee WHERE Salary NOT IN (select MAX(Salary) from Employee );

See How to find second highest salary in SQL for more ways to solve this problem.

No comments:

Post a Comment

Popular Posts