Hello,
I'm trying to query a table to return records with the latest contract date. I've tried a bunch of max date codes that I found on the forum but none of them seem to return what I'm looking for. Here's my table:
<tbody>
</tbody>
I'm trying to get the following results:
<tbody>
</tbody>
I'm trying to query a table to return records with the latest contract date. I've tried a bunch of max date codes that I found on the forum but none of them seem to return what I'm looking for. Here's my table:
Group | Level | ContractDate | Salary |
A | 1 | 01/04/2001 | 10000 |
A | 1 | 01/04/2002 | 11000 |
A | 2 | 01/04/2001 | 20000 |
A | 2 | 01/04/2002 | 21000 |
B | 1 | 01/06/2001 | 10000 |
B | 1 | 01/06/2002 | 11000 |
<tbody>
</tbody>
I'm trying to get the following results:
Group | Level | ContractDate | Salary |
A | 1 | 01/04/2002 | 11000 |
A | 2 | 01/04/2002 | 21000 |
B | 1 | 01/06/2002 | 11000 |
<tbody>
</tbody>