Hi,
I'm using CR XI, XI server and a Teradata database.
I know I could do this with a stored procedure but I'm wondering if there's another way to do this in CR.
This system I'm reporting from has the following five tables account, team, invoice, associate and internal opportunity.
All of the tables have the following tracking columns in common: creation_timestamp, created_by, last_modified_timestmap, last_modified_by.
I'm constantly getting asked...
- When this account record created and by who.
- When this team record created and by who.
- When was this invoice record last modified and by who.
- Etc...
I would like to create a report that has a prompt that asks for what table they want to query. And prompt for (in the case of the account table) an account number. If they had selected the team table the user would have provided a team number in the team prompt.
Depending on what table the user specified a different query would have to be run.
In the case of the account table:
SEL
account_no
,creation_timestamp
,created_by
,modified_timestamp
,modified_by
FROM account_table
WHERE account_no = <prompt account_no value>;
In the case of the team table:
SEL
team_no
,creation_timestamp
,created_by
,modified_timestamp
,modified_by
FROM team_table
WHERE team_no = <prompt team_no value>;
Is there a way that I can setup a CR to run different completely different SQL based upon the parameters that were filled in?
NOTE: These tables don't necessarily join together so its not like I can create one SQL view with a bunch of joins(example internal_opportuinty doesn't join to any of the other tables mentioned).
Thanks in advance.
I'm using CR XI, XI server and a Teradata database.
I know I could do this with a stored procedure but I'm wondering if there's another way to do this in CR.
This system I'm reporting from has the following five tables account, team, invoice, associate and internal opportunity.
All of the tables have the following tracking columns in common: creation_timestamp, created_by, last_modified_timestmap, last_modified_by.
I'm constantly getting asked...
- When this account record created and by who.
- When this team record created and by who.
- When was this invoice record last modified and by who.
- Etc...
I would like to create a report that has a prompt that asks for what table they want to query. And prompt for (in the case of the account table) an account number. If they had selected the team table the user would have provided a team number in the team prompt.
Depending on what table the user specified a different query would have to be run.
In the case of the account table:
SEL
account_no
,creation_timestamp
,created_by
,modified_timestamp
,modified_by
FROM account_table
WHERE account_no = <prompt account_no value>;
In the case of the team table:
SEL
team_no
,creation_timestamp
,created_by
,modified_timestamp
,modified_by
FROM team_table
WHERE team_no = <prompt team_no value>;
Is there a way that I can setup a CR to run different completely different SQL based upon the parameters that were filled in?
NOTE: These tables don't necessarily join together so its not like I can create one SQL view with a bunch of joins(example internal_opportuinty doesn't join to any of the other tables mentioned).
Thanks in advance.