我試圖在excel輸出的代碼中搜索並顯示下面提到的以下問題。 由於我的excel電子表格有LABEL和DATA作爲兩列,問題出現在名爲LABEL的列下,而其相關YES/NO答案出現在名爲DATA的列下。SQL(Where IN)子句的用法
前三個問題應該顯示在Excel工作表中,前提是答案是'NO'!
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')
執行時,上面的代碼拋出了輸出中的所有問題,無論它是否是/否
目前還不清楚是什麼你'試圖去做,但你可能需要使用CASE表達式。 –
對生成的GUID進行排序並更新前10名? – Will
我發佈了我正在處理的實際查詢 – Swathi