One table with EmpSalary table in employee table. I need to find the second largest salary that the company paid.
How to find the second highest value (Salary) from the table.?
Try the following: this should give the second highest salary:
SELECT MAX (EmpSalary) FROM employee WHERE EmpSalary <(SELECT MAX (EmpSalary) FROM employee);
;WITH CTE AS ( SELECT ROW_NUMBER() OVER (ORDER BY SortColumn DESC) AS RowNumber, * FROM YourTable) SELECT * FROM CTE WHERE RowNumber = 2
top (1) prodMrp Product, prodMrp = ( top (1) prodMrp prodMrp DESC) order by prodMrp DESC
Source: https://habr.com/ru/post/1770080/More articles:If a class is a plan for objects, then what about a static class? - c #Android: Почему имя андроид-приложения принято как название начального действия? - androidHow to extract URLs from plain text in Perl? - urlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1770078/iphone-uitableview-bug-sectionindextitlesfortableview-seems-to-cause-it&usg=ALkJrhiiPOM2KQZlCGw3kj2qcUJIHIyopAWhat are the incompatibilities of libjingle and XEP-0166, etc.? - xmppactivity detection in visual studio editor - editorWhat does the DeploymentItem attribute mean? - c #unsigned long long to string convert - cCentering a div that overflows with its parent in another centered div - htmlAre there any performance gaps in the inheritance pattern? - performanceAll Articles