본문 바로가기
카테고리 없음

[1일 1쿼리] 3일차 firstname이 Zorica인 사람들 중에 현재 근무중이고, 가장 오랫동안 근무한 사람 10명

by JINJINC 2025. 1. 4.
728x90
반응형
select * from employees as e 
join salaries as s on e.emp_no = s.emp_no
where first_name='Zorica'  
and  s.to_date = '9999-01-01'
order by e.hire_date asc limit 10;

 

728x90
반응형

댓글