select t1.*, t2.* from employees t1 inner join employees t2
on t1.emp_no = t2.emp_no -1 limit 5;
重點在於在inner join on 條件放在 t1.emp_no 和 t2.emp_no 上
select t1.*, t2.* from employees t1 inner join employees t2
on t1.emp_no = t2.emp_no -1 limit 5;
重點在於在inner join on 條件放在 t1.emp_no 和 t2.emp_no 上