2ndHighestSalaryTSQL 1.0.0

dotnet add package 2ndHighestSalaryTSQL --version 1.0.0
NuGet\Install-Package 2ndHighestSalaryTSQL -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="2ndHighestSalaryTSQL" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add 2ndHighestSalaryTSQL --version 1.0.0
#r "nuget: 2ndHighestSalaryTSQL, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

There are no supported framework assets in this package.

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