GJT
Registered User.
- Local time
- Today, 12:18
- Joined
- Nov 5, 2002
- Messages
- 116
Please help - cant seem to get this query right.
Basically, I have two tables : one table containing time stamped log entries for 10 machines, the other table contains staff identifiers. When a user uses that machine, a log entry is filed in the machines table where with the user id as the key to the employee name etc.
During the day upto 'n' users may use any of these 10 machines.
I need a query to return all 10 machines with the most recent user of each machine group. Any ideas pleaze?

Basically, I have two tables : one table containing time stamped log entries for 10 machines, the other table contains staff identifiers. When a user uses that machine, a log entry is filed in the machines table where with the user id as the key to the employee name etc.
During the day upto 'n' users may use any of these 10 machines.
I need a query to return all 10 machines with the most recent user of each machine group. Any ideas pleaze?