SELECT
Field1, Field2, Field3
FROM
sometable
嗨,我需要帮助在SSRS中创建一个参数。
当为False时,它应该只显示Field3 IS NOT NULL
和。{
当为True时,它应显示所有记录
谢谢!
答案 0 :(得分:2)
您可以将查询更改为以下内容:
SELECT Field1, Field2, Field3
FROM sometable
WHERE (@param = TRUE) OR (Field3 IS NOT NULL)