Hi Team,
I have to run a report where I need to do pull data from multiple tables in a MySQL database and run summaries on one of the tables. I am familiar with SQL, mySQL and Crystal Reports XI but this particular data extraction stumps me a bit.
My requirement is very simple: I have 4 mySQL tables. A ChangeRecord table showing IT changes for the day with ChangeRecordNumber as a primary key, a Firewalls table with ChangeRecordNumber as foreign key, and the same with Routers and Servers table (they also have ChangeRecordNumber as foreign key).
A ChangeRecord may involve 0 or more of Firewalls, Routers and servers in the change and I just need to GROUP by ChangeRecordNumber and detailing how many Firewalls, Routers and Servers are involved in that ChangeRecord.
The final output I need to show is something like this (4 columns):
My question is I was trying to setup the links in Crystal Reports XI and I am having the arrows of the links all pointing to the ChangeRecordNumber field. I am also using left outer join so it can group by ChangeRecordNumber. My issue is if I link only one table at a time, (i.e. Firewalls --> ChangeRecord or Routers --> ChangeRecord) then it works. But once I do multiple links i.e. Firewalls --> ChangeRecord, Routers --> ChangeRecord and Servers --> ChangeRecord, I get the error of ('...warning..multiple starting points" ... or something like that), and then I get no output in the report although the record count goes into the tens of thousands, as though the link caused a cross-join somewhere.
How do I setup a report where multiple Child tables link to the same Foreign Key in the parent record and have it output like in my specimen above?
Thanks for all the help.
I have to run a report where I need to do pull data from multiple tables in a MySQL database and run summaries on one of the tables. I am familiar with SQL, mySQL and Crystal Reports XI but this particular data extraction stumps me a bit.
My requirement is very simple: I have 4 mySQL tables. A ChangeRecord table showing IT changes for the day with ChangeRecordNumber as a primary key, a Firewalls table with ChangeRecordNumber as foreign key, and the same with Routers and Servers table (they also have ChangeRecordNumber as foreign key).
A ChangeRecord may involve 0 or more of Firewalls, Routers and servers in the change and I just need to GROUP by ChangeRecordNumber and detailing how many Firewalls, Routers and Servers are involved in that ChangeRecord.
The final output I need to show is something like this (4 columns):
Code:
ChangeRecordNumber: Firewalls Routers Servers
0000111 Firewall-A Router-A
Router-B
Router-C
0000112 Firewall-D Router-B Server-A
Server-B
How do I setup a report where multiple Child tables link to the same Foreign Key in the parent record and have it output like in my specimen above?
Thanks for all the help.