以下是表格:
emp_id salary salary_date
Emp1 1000 Feb 01
Emp1 2000 Feb 15
Emp1 3000 Feb 28
Emp1 4000 Mar 01
Emp2 5000 Jan 01
Emp2 6000 Jan 15
Emp2 2000 Mar 01
Emp2 5000 Apr 01
Emp3 1000 Jan 01
Emp4 3000 Dec 31
Emp4 5000 Dec 01
我想要以下结果:
Emp1 Feb 3000
Emp2 Jan 6000
Emp4 Dec 5000
Emp2 Apr 5000
Emp1 Mar 4000