SQL Server Reporting Service - Reference another d

2019-07-23 07:45发布

I have two datasets in a SQL Server 2008 reporting services report. I need to attach a WHERE clause to the second one that will contain a value from the first one. How should I write that second query?

1条回答
Lonely孤独者°
2楼-- · 2019-07-23 08:30

If I understand what you are asking, you should run a SUB query within the where clause.

SELECT title FROM books WHERE author_id IN (SELECT id FROM authors);

查看更多
登录 后发表回答