如何使用 MS SQL Server Report Builder 3.0 编写带有括号的 where 子句

How to write where clause that has parenthesis using MS SQL Server Report Builder 3.0

我在 "SQL Server Reporting Services 2012" 上使用 "Microsoft SQL Server Report Builder 3.0"。当我将一些参数从主报表传递到钻取报表时,我必须使用图形查询设计器来生成 SQL 查询。

在 SQL 的 WHERE 子句中有如下条件:

`.... WHERE condition1 AND condition2 AND (condition3 OR condition4 OR condition5 OR condition6)`

我知道如何使用图形查询设计器中的适当 "Operator" 添加 AND/OR 条件,但我找不到在 AND 之后添加括号的方法。

如何使用 Report Builder 3.0 执行此操作?我没有 "Business Intelligence Development Studio".

在查询设计器中,单击左上角的“编辑为文本”。您可以在打开的基于文本的查询设计器 window 中键入查询。从另一个论坛得到了他的答案,所以只想在这里 post 以防将来有人找到这个 post 来解决同样的问题。