I have a challenge ahead of me. I have looked at this for a couple of days now in a trial and error sense and am getting tired of not getting it… My SQL knowledge is very very basic.
Each quarter I have to report on the questions below (of course the date period changes):
- The number of doctors with whom the designated body has a prescribed connection at 31st December.
- The number of doctors due to hold an appraisal meeting in the reporting period (from 1st October to 31st December 2017).
- The number of those doctors above who held an appraisal meeting in the reporting period.
- The number of those doctors above who did not hold an appraisal meeting in the reporting period.
I have three lists:
- A list of staff responsible to the designated body. In a linked table- ‘GMC_Main’ Field- GMC Ref No
- A list of all appraisals that have ever taken place (historical and ones performed by staff not responsible to us). In a query called- ‘Latest Appraisal’ Fields- ProfNum, MaxOfAppDate
- List of emails in a linked table- ‘MARS_Core’ Fields- ProfNum, EmpSurname, EmpFirstName, EmpEmail
Things to consider
- ProfNum and GMC Ref No are the Unique identifiers for each member of staff.
- GMC_Main is the list of all staff that need to be considered in the report. So should have a row regardless of the results from the other tables.
- All appraisals are valid for 365 days. So The date 1 year in the future from that in MaxofAppDate will be needed to calculate expiry in the period.
- Due to software limitations I only have available Access 2016.
- I need to count all that should have taken place, including ones that are still overdue from previous quarters.
- Count all the ones that actually took place in the period.
- Be able to contact all the ones that did not achieve and appraisal.
- At year end (31 March) do this for the entire year and not just the quarter…
Fuff!
Each time I approach this problem I am missing a group of people or feel I am doing it in a very wrong-handed way.
If anyone could help, then that would be amazing. This is a little beyond me.