Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

The challenge is to find the employees with the second highest salary in each department. However, it is a little more complicated because if two employees have the same salary, you need to list both of them.

TSQL Beginners Challenge 1 - Find the second highest salary for each department

Solution to TSQL Beginners Challenge 1

Aug 20 2011 10:24PM by Dineshkumar   

Solution to TSQL Beginners Challenge 1

with second as (select EmployeeID,EmployeeName,Department, Salary, 
RANK() over(Partition by Department order by salary) as Rank from EX1) 
select  EmployeeID,EmployeeName,Department, Salary from second where RANK=2

Tags:


Dineshkumar
2114 · 0% · 6
0
Liked



Submit

Your Comment


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]