rossmcauslan
Programmer
I have two tables in my db called case and history. There is a one to many relationship between the caseid field in both tables. The case table holds details on each case within the database and the history table holds details on the history of the case. History contains the following fields: CaseID, NoteDate and NoteText. There often more that one history item to each CaseID.
The problem I have is that I need to create a report that will only show the caseid's where there has not been any activity in the last 7 days. How do I create a query that only shows the most recent history item for each case.
This doesn't seem to be too dificult but I can't seem to get my head round it!
Thanks in advance.
The problem I have is that I need to create a report that will only show the caseid's where there has not been any activity in the last 7 days. How do I create a query that only shows the most recent history item for each case.
This doesn't seem to be too dificult but I can't seem to get my head round it!
Thanks in advance.