Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在查询中编写代码时,假设我希望有两个函数作为我的结果的过滤器,但仍然希望根据我的主要过滤器功能显示结果,而不管辅助功能如何:
例如,我选择一个日期,fA 已完成,表格显示该日期内的所有结果;我然后选择一个类别,fB 现在已完成,然后表格显示该类别的项目,在该日期内。
我如何在查询中使用“ WHERE fA AND fB”来做到这一点?
当我现在将两个函数与“ WHERE fA AND fB”一起使用时,当函数 B 未完成时,表不返回任何行,因为在“ AND ”之后代码为空。
图像.1
图像.2