我正在尝试在代码中搜索并显示以下提到的以下问题作为excel输出。 由于我的Excel电子表格包含 LABEL 和 DATA 作为两列,因此问题位于名为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')
执行上面的代码会抛出输出中的所有问题,无论是否为是/否
答案 0 :(得分:2)
看起来你需要像
这样的东西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'
)
)