I have a table w/ the following fields:
EmpID | Salary | Month-Year
with data such as:
2134 | $50,000 | Jan-01
2134 | $80,000 | Feb-01
2134 | $75,000 | Mar-01
2134 | $0 | Apr-01
2135 | $50,000 | Jan-01
2135 | $80,000 | Feb-01
2135 | $80,000 | Mar-01
2135 | $80,000 | Apr-01
What I need to do is select the Employee's last salary and last month of employment.
Result of Query:
EmpID | Last Salary | Last Month
2134 | $75,000 | Mar-01
2135 | $80,000 | Apr-01
Anyone out there have any suggestions? Any help would be greatly appreciated! Thanks!
EmpID | Salary | Month-Year
with data such as:
2134 | $50,000 | Jan-01
2134 | $80,000 | Feb-01
2134 | $75,000 | Mar-01
2134 | $0 | Apr-01
2135 | $50,000 | Jan-01
2135 | $80,000 | Feb-01
2135 | $80,000 | Mar-01
2135 | $80,000 | Apr-01
What I need to do is select the Employee's last salary and last month of employment.
Result of Query:
EmpID | Last Salary | Last Month
2134 | $75,000 | Mar-01
2135 | $80,000 | Apr-01
Anyone out there have any suggestions? Any help would be greatly appreciated! Thanks!