SQL的(where IN)子句的用法

我试图search和显示下面提到的代码中的以下问题作为Excel输出。 由于我的excel电子表格的LABELDATA两列,问题出现在名为LABEL的列下,而相关的YES / NO答案出现在名为DATA的列下。

前三个问题应该显示在Excel工作表中,只有答案是“否”!

WHERE Label IN ('Is the price adequate? ' AND Data='No', 'Were the proper measures taken prior? ' AND Data='No', 'Is the incident reported? ' AND Data='No', 'Did the both prices match?' , 'Learning Methods', 'Next actions Required','Final feedback') 

上面的代码在执行时抛出输出中的所有问题,不pipe是否是/否

看起来你需要类似的东西

 WHERE ( Label IN ('Is the price adequate? ', 'Were the proper measures taken prior? ', 'Is the incident reported? ' ) AND Data='No' ) or ( Label IN ('Did the both prices match?' , 'Learning Methods', 'Next actions Required', 'Final feedback' ) )