Since you flagged this as 7.9, you may or may not have access to named queries.
You can also accomplish this within a script data source.
Here is a decent thread that covers a similar issue:
Since you flagged this as 7.9, you may or may not have access to named queries.
You can also accomplish this within a script data source.
Here is a decent thread that covers a similar issue: