How to find nth highest salary in sql in hindi | Find nth highest salary in sql in hindi

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 21

  • @leishasharma4195
    @leishasharma4195 3 роки тому

    Good explanation. This is very well clear now.. Thank you

  • @saniyaofficial2565
    @saniyaofficial2565 3 місяці тому

    Thank U Sir🎉❤

  • @karanmalkhede6689
    @karanmalkhede6689 2 роки тому

    Great

  • @nazirmsa6874
    @nazirmsa6874 2 роки тому

    Good explaination ! But if i want to find second highest salary but same salary of two employee then how ?

    • @lotusamaze1142
      @lotusamaze1142  2 роки тому

      it will take first occurrence salary

    • @nazirmsa6874
      @nazirmsa6874 2 роки тому

      @@lotusamaze1142 could you please share query

  • @mohammadfaisalirani3899
    @mohammadfaisalirani3899 3 роки тому

    Dear Sir
    Thanks for your tutorial.
    I tried cte with dense rank function.
    It gives result of ctresult.
    But didn't get from
    Select top 1 id, salary from ctresult where salaryrank,=1,
    Would you please help me.
    Mohammad Faisal Irani
    Dhaka Bangladesh

  • @ishukumar
    @ishukumar 2 роки тому

    Thank you so much brother, you really explained very clearly

  • @faizraina6
    @faizraina6 2 роки тому +1

    how to handle null occurance in this question. Leetcode question 176

    • @lotusamaze1142
      @lotusamaze1142  2 роки тому

      Replace Null value with 0(Zero) Use ISNULL function

  • @ankurmishra3042
    @ankurmishra3042 2 роки тому

    Sir is there any way i can take a course of SQL from you

    • @lotusamaze1142
      @lotusamaze1142  2 роки тому

      We provide training on sql contact on WA 91-8076787743

  • @pbbhosale9
    @pbbhosale9 3 роки тому

    Sir ROWNUM se kaise highest salary nikale?

    • @lotusamaze1142
      @lotusamaze1142  3 роки тому +1

      SELECT * FROM (
      SELECT *, row_number() OVER (order by salary desc) AS MyRowNumber FROM Employee
      ) recordSet
      WHERE MyRowNumber =N; /*N is the nth highest salary*/