G
Guest
I link to a table in an Oracle database to run queries. There is a table that
records every application an employee submits for a job, so a single employee
could have multiple applications. The table has a field called ProfileSeq
which sequencially numbers each employees application. Example:
EmployeeID ProfileSeq
------------- -----------
1 1
1 2
1 3
2 1
3 1
4 1
4 2
What I want returned in the query is just the row that has the maximum
ProfileSeq values, so the results would be:
EmployeeID ProfileSeq
------------- -----------
1 3
2 1
3 1
4 2
I realize this probably seems simple, but my brains not pulling it out right
now.
Thanks in advance for any help,
Joe
records every application an employee submits for a job, so a single employee
could have multiple applications. The table has a field called ProfileSeq
which sequencially numbers each employees application. Example:
EmployeeID ProfileSeq
------------- -----------
1 1
1 2
1 3
2 1
3 1
4 1
4 2
What I want returned in the query is just the row that has the maximum
ProfileSeq values, so the results would be:
EmployeeID ProfileSeq
------------- -----------
1 3
2 1
3 1
4 2
I realize this probably seems simple, but my brains not pulling it out right
now.
Thanks in advance for any help,
Joe