I have a simple database that has 2 main tables... it is for handling the status of files (physical file folders) and there status...i.e. whether they are checked in or checked out.
the main table holds the info regarding the file and the 2nd table handles the activity... i.e. activity (checked in or out) on (date) and to (who).
Is there a way that I can get a query to tell me what all the files that are checked out to a particular person? in other words.... what files that reference a particular person have a activity of "checked out" logged last?
I was trying to write a query to do this using the "SELECT(MAX)" function
in the most brief statement i can think of, what I am trying to accomplish is:
Select the last activity for each file where activity in/out-from/to = [particular person]
filter by activity [checked out]
I have been trying to get my arms around this for a while now, but just cant seem to nail it down.... does anyone have any good ideas here?... thanks in advance... any help would really be appreciated....
- Matthew Montalto
the main table holds the info regarding the file and the 2nd table handles the activity... i.e. activity (checked in or out) on (date) and to (who).
Is there a way that I can get a query to tell me what all the files that are checked out to a particular person? in other words.... what files that reference a particular person have a activity of "checked out" logged last?
I was trying to write a query to do this using the "SELECT(MAX)" function
in the most brief statement i can think of, what I am trying to accomplish is:
Select the last activity for each file where activity in/out-from/to = [particular person]
filter by activity [checked out]
I have been trying to get my arms around this for a while now, but just cant seem to nail it down.... does anyone have any good ideas here?... thanks in advance... any help would really be appreciated....
- Matthew Montalto