thanks for reply guys, but the table dont actually like above,for some case, it can be like below
-------------------------
id(pk) | sy_id | dm_id
-------------------------
1 | 1 | 1
2 | 2 | 1
3 | 1 | 2
4 | 4 | 3
5 | 1 | 4
6 | 3 | 4
7 | 4 | 4
--------------------------
if you can see, the desease dm_id=4 has 3 symptom sy_id, 1,3,4
ya, i know to use AND is imposibble, and i think for OR also not kinda work out dude
any suggest? really appreciate it guys