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

Liked



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

  • 1
    Liked
    1
    Comments

    solution

    Just use a CTE to calculate a RANK, partitioned by Department and ordered by Salary. Then select from the CTE where Rank = 2...

    Marc Jellinek  Posted on Dec 28 2011 11:19AM
    Profile · Blog
  • 2
    Liked
    2
    Comments

    Solution

    with CTE as(select row_number() over(partition by deptno order by salary desc) row,salary,deptno from empname) select * from CTE where row=2 ...

    Ravi Tuvar  Posted on Dec 16 2011 10:06PM
    Profile
Previous 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... Next
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]