select * from employees where hire_date= (select min(a.hire_date) from employees a,employees b where a.emp_no!=b.emp_no and a.hire_date<b.hire_date group by a.emp_no having count(*)<3)
select * from employees where hire_date= (select min(a.hire_date) from employees a,employees b where a.emp_no!=b.emp_no and a.hire_date<b.hire_date group by a.emp_no having count(*)<3)