I have a pretty large dataset in multiple tables that I'm having difficulty figuring out how to get the reports generated that I need. I'm wide open to suggestions at this point because although I have attempted some Reports and Queries, I can't figure out how to get what I'm needing from the data. I really only have 2 tables with the necessary information: "Current FY Practice Detail" and "Reviews - Practice" Both tables have "Practice Code" and "County" records that link. The information that I want to generate in a report is:
1. Count of Practices sorted by County (I think that I can muster this one, but am always open to best way possible)
2. Date of last review of Practice in County (Here's where I'm having problems) The basic criteria would be: If a practice that has been applied in a County (in table Current FY Practice Detail) has also had a review for the same practice in the same County (in table Reviews - Practice), then what was the most recent date that the review was completed on for that specific County and Practice (also in table Reviews - Practice).
An example of the dataset would be:
Reviews - Practice ID Practice PracticeCounty ReviewDate 1 512 Gx 11/7/2017 2 528 Gx 11/7/2016 3 342 Tx 11/14/2015 4 314 Tx 11/14/2014 5 329 Kx 10/24/2017 6 340 Kx 10/24/2017 7 512 Kx 10/24/2017 8 528 Kx 10/24/2017
Current FY Practice DetailID Practice County 1 512 Gx 2 561 Gx 3 512 Kx 4 528 Tx 5 528 Kx 6 342 Gx 7 600 Kx 8 528 Kx
For this example, I would like access to give me a report that says County Kx installed practice 512 1 time and it was last reviewed 10/24/2017. County Gx installed practice 561 1 time and has no date of last review.
Any help is appreciated!!!