2ndHighestSalaryTSQL 1.0.0
dotnet add package 2ndHighestSalaryTSQL --version 1.0.0
NuGet\Install-Package 2ndHighestSalaryTSQL -Version 1.0.0
<PackageReference Include="2ndHighestSalaryTSQL" Version="1.0.0" />
paket add 2ndHighestSalaryTSQL --version 1.0.0
#r "nuget: 2ndHighestSalaryTSQL, 1.0.0"
// Install 2ndHighestSalaryTSQL as a Cake Addin
#addin nuget:?package=2ndHighestSalaryTSQL&version=1.0.0
// Install 2ndHighestSalaryTSQL as a Cake Tool
#tool nuget:?package=2ndHighestSalaryTSQL&version=1.0.0
--TODO: get 2nd highest salary, and name of that employee
DECLARE @employee TABLE (ID INT IDENTITY,name VARCHAR(50)) DECLARE @employee_salary TABLE (ID INT,dollarValue INT) INSERT INTO @employee ( name ) VALUES ('Andy'),('Mary'),('Claire') INSERT INTO @employee_salary ( ID, dollarValue ) VALUES (1,500),(2,250),(3,10)
--TODO: get 2nd highest salary, and name of that employee SELECT TOP(1) * FROM ( SELECT TOP(2) _employee.name ,_salary.dollarValue FROM @employee _employee INNER JOIN @employee_salary _salary ON _salary.ID = _employee.ID ORDER BY _salary.dollarValue DESC ) empSal ORDER BY empSal.dollarValue ASC
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 734 | 8/17/2020 |