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.
以下是我在 Report Builder 数据集中输入的查询。但是,我只能看到 #Temp 中第一个 Select * 的变量,而不是第二个 select 语句中的变量。
Reporting Services 只期望并且只能处理一个结果集来填充数据集 - 它将接受您的查询返回的第一个结果集并丢弃其他任何内容。
我能想到的一些选择:
为单独的查询使用两个数据集。
使用一个详细数据集并在报告级别应用任何所需的聚合。
使用 aUNION ALL或类似方法在查询级别合并两个结果集。
UNION ALL