Click here to Skip to main content
15,899,026 members
Articles / Database Development / SQL Server

nth Highest Salary in SQL Server 2005

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
18 Apr 2011CPOL 10K   1  
The original solution has some issues. Check the following script:IF OBJECT_ID('tempdb..#salary') IS NOT NULL BEGIN DROP TABLE #salary ENDCREATE TABLE #salary ( Salary INT )INSERT INTO #salary(Salary) VALUES(5) -- 1INSERT INTO #salary(Salary)...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions