I hope someone can help me since I’m very new to SQL and coding and I can’t wrap my head around the following problem.
I have a table containing
patient name, prescription date, medication (containing multiple drugs separated by spaces).
There is, in most cases, more than one row per name since people get prescriptions from time to time.
What I want to do is generate a list of all patients that ever received Medication A and Medication B.
Logically, I would identify all patients that ever received Medication A and also all patients that ever received Medication B. Then I would select all records that appear in both groups. Then I would like to generate a list of all names that appear in both groups, How do I do this in MS-Access SQL?
Many thanks in advance!