[英]SSRS Dataset - An expression of non-boolean type specified in a context where a condition is expected, near ','
I am trying to make a report and I have the problem in the @myTab parameter that I need multiple selections to be able to select several or all the elements and be able to know which country it belongs to, the problem occurs when I select more than one element, this is the query I'm overlooking我正在尝试制作报告,我在@myTab 参数中遇到问题,我需要多项选择才能选择多个或所有元素并能够知道它属于哪个国家,当我选择更多时会出现问题不止一个元素,这是我忽略的查询
select [CompanyName],[ContactName],[Country] from [Customers]
where [Customers].ContactName in (@myTab) and [Customers].Country=@pais or
[Customers].Country=@pais and @myTab is null
This is because of @myTab is null condition(we can't check multi-valued parameters directly with "is null"), Try removing this and validate again.这是因为@myTab 为空条件(我们不能直接用“is null”检查多值参数),请尝试删除它并再次验证。 One more thing is that, be sure about "and" and "Or" conditions - Use proper brackets to avoid data issues
另一件事是,请确定“和”和“或”条件 - 使用正确的括号来避免数据问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.