For presentation purposes I modify the table names and fields and simplify the SQL problem:
We have a table named A with only 2 columns:
Name ServiceReceived
=========================
Mr A Medical
Mr A Dental
Mr A HealthCare
Mr A Special1
Mr B Dental
Mr B HealthCare
Mr C Medical
Mr C Dental
Mr C HealthCare
Mr C Special
Mr C Special2
I need a list of all people who revised medical or dental.
And ALSO received one or two of Special1 and Special2
I tried
where ServiceReceived in ('medical', 'dental')
and ServiceReceived in ('Special1', 'Special2')
But this does not work.
======================================
Expected Results:(As you see MrB is not there, since he does not have Special1 or Special2
Name ServiceReceived
=========================
Mr A Medical
Mr A Dental
Mr A HealthCare
Mr A Special1
Mr C Medical
Mr C Dental
Mr C HealthCare
Mr C Special
Mr C Special2