report2000
Technical User
I have two tables
Table1:
----------
EmployeeID Employee Name Contract
1 Jim 1
1 Jim 2
2 Tom 3
3 George 4
4 Frank 5
5 Oscar 6
Table2:
-----------
Contract Contract Version Amount
1 1 $20
1 2 $25
1 3 $28
2 1 $31
2 2 $50
3 1 $20
4 1 $23
4 2 $45
5 1 $20
6 1 $51
I like to query this two table in order to get only the Employee Name, distinct (Contract) , Amount for the latest Contract version
Table1:
----------
EmployeeID Employee Name Contract
1 Jim 1
1 Jim 2
2 Tom 3
3 George 4
4 Frank 5
5 Oscar 6
Table2:
-----------
Contract Contract Version Amount
1 1 $20
1 2 $25
1 3 $28
2 1 $31
2 2 $50
3 1 $20
4 1 $23
4 2 $45
5 1 $20
6 1 $51
I like to query this two table in order to get only the Employee Name, distinct (Contract) , Amount for the latest Contract version