Skip to content

Commit

Permalink
Proxy Dev: remove duplicates per salary
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 19, 2025
1 parent 20eb561 commit 7eb2ee4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface EmployeeMapper {
" JOIN employees em ON dm.emp_no = em.emp_no" +
" WHERE em.last_name = #{lastName}" +
" AND dm.to_date = (SELECT MAX(to_date) FROM dept_manager WHERE dept_no = dm.dept_no) " +
") limit 200;"
" AND s.to_date = (SELECT MAX(to_date) FROM salaries WHERE emp_no = em.emp_no)) limit 200;"
)
List<Employee> findEmployeesByManagerLastName(@Param("lastName") String lastName);

Expand Down

0 comments on commit 7eb2ee4

Please sign in to comment.