I am using add commands to pull data from two similar but separate SQL databases. Each database contains the same three fields: submittime; score; and excluded.
I want to be able to pull these fields from both databases and roll them up both separately and combined. I have created two add commands, one for each DB. When I go to report design mode I have both COMMAND and COMMAND1, and both of them have the same 3 fields.
My idea was to create a group name formula based on the datasource. Something like "if submittime = db1 then "Desktop" else "Level 2". I could use the group name to roll up by group.
I don't know if this idea will work. If it is viable, I don't know how to identify the DBs in the formula. Can someone give me some feedback and possibly an example?
I am using Crystal Reports 2008 againt SQL servers.
I want to be able to pull these fields from both databases and roll them up both separately and combined. I have created two add commands, one for each DB. When I go to report design mode I have both COMMAND and COMMAND1, and both of them have the same 3 fields.
My idea was to create a group name formula based on the datasource. Something like "if submittime = db1 then "Desktop" else "Level 2". I could use the group name to roll up by group.
I don't know if this idea will work. If it is viable, I don't know how to identify the DBs in the formula. Can someone give me some feedback and possibly an example?
I am using Crystal Reports 2008 againt SQL servers.