✅MySQL||Easy understanding||One line Solution✅
Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome.\n__________
***Please upvote to motivate me in my quest of documenting all leetcode solutions. HAPPY CODING:)\nAny suggestions and improvements are always welcome.***\n____________________________________________________________________________________________________________________________\n\u2705 **MySQL Code :**\nOne line MySQL code:\n```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\nDECLARE M INT;\nSET M=N-1;\nRETURN(  # Write your MySQL query statement below.\n\t\tSELECT DISTINCT Salary FROM Employee ORDER BY Salary DESC LIMIT M, 1\n\t  );\nEND\n```\n____________________________________________________________________________________________________________________________\nIf you like the solution, please upvote \uD83D\uDD3C\nFor any questions, or discussions, comment below. \uD83D\uDC47\uFE0F
['MySQL']