私は以下のようなテーブルを持っています:
node_name id term_name
----------------------------------------------
test1 001 physics
test1 001 maths
test1 001 chemistry
test2 002 physics
test2 002 maths
id
用語名の組み合わせが与えられた場合、セットに指定された用語名のみが含まれているすべての行を検索したいと考えています。
たとえば、用語名が物理学と数学の場合、私の出力は次のようになります
node_name id term_name
----------------------------------------------
test2 002 physics
test2 002 maths
Id セット001
にも含まれchemistry
ているため、含めるべきではありません。