I have a table which has two field: "patient ID" and "drug name"
I am trying to create a query which will return all the patiend who use 2 specific drugs. If I use the OR criteria I get some results but if I use the And criteria under the same field I get no results though there are patients who use those 2 drugs.
For example: can I find out what patient use both drug "b" & "c" (001 & 003)?
patient ID Drug name
001 a
001 b
001 c
002 a
002 b
003 b
003 c
I am trying to create a query which will return all the patiend who use 2 specific drugs. If I use the OR criteria I get some results but if I use the And criteria under the same field I get no results though there are patients who use those 2 drugs.
For example: can I find out what patient use both drug "b" & "c" (001 & 003)?
patient ID Drug name
001 a
001 b
001 c
002 a
002 b
003 b
003 c