I have Crystal Reports 9 Full Developer Edition. I have been asked to create a report that is supposed to take the data (a list of patient appointments), from a Lotus view, and then query against a DB2 database to create a report to send back to the doctors' offices. I got started on this project before all of the tables were created in DB2, so I created a mini version of the database in Access based on the DB2 data model.
The report has been created and all of the SQL logic has been worked out, I even began translating the SQL into DB2 syntax. I had anticipated that the most logical approach would be to have all the SQL in DB2 and have a link of some kind between DB2 and Lotus so that the view could be incorporated in to the views within DB2. I just found out that that is not possible, our DB2 people don't know how to do that and don't have time to investigate.
So now I have been told that I should get all of my SQL into Crystal and pull my data from Lotus and DB2. To accomplish this I would need to write some queries in Crystal joining the Lotus view to DB2 tables. The posts I have read so far about getting data from separate locations are not very encouraging.
Here is an example of a query that would need to access both databases. I have prefixed the table/field names with the source of the data (DB2, LOTUS), for that field.
SELECT DISTINCT DB2.MEMBER_LOOKUP.CORP_MBR_ID, LOTUS.APPT_LIST.AppointmentDate
FROM LOTUS.APPT_LIST INNER JOIN DB2.MEMBER_LOOKUP ON (LOTUS.APPT_LIST.MemberNumber = DB2.MEMBER_LOOKUP.MBR_DEP_NBR) AND (LOTUS.APPT_LIST.SubscriberID = DB2.MEMBER_LOOKUP.MBR_SUB_ID)
Any help would be appreciated, thanks.
The report has been created and all of the SQL logic has been worked out, I even began translating the SQL into DB2 syntax. I had anticipated that the most logical approach would be to have all the SQL in DB2 and have a link of some kind between DB2 and Lotus so that the view could be incorporated in to the views within DB2. I just found out that that is not possible, our DB2 people don't know how to do that and don't have time to investigate.
So now I have been told that I should get all of my SQL into Crystal and pull my data from Lotus and DB2. To accomplish this I would need to write some queries in Crystal joining the Lotus view to DB2 tables. The posts I have read so far about getting data from separate locations are not very encouraging.
Here is an example of a query that would need to access both databases. I have prefixed the table/field names with the source of the data (DB2, LOTUS), for that field.
SELECT DISTINCT DB2.MEMBER_LOOKUP.CORP_MBR_ID, LOTUS.APPT_LIST.AppointmentDate
FROM LOTUS.APPT_LIST INNER JOIN DB2.MEMBER_LOOKUP ON (LOTUS.APPT_LIST.MemberNumber = DB2.MEMBER_LOOKUP.MBR_DEP_NBR) AND (LOTUS.APPT_LIST.SubscriberID = DB2.MEMBER_LOOKUP.MBR_SUB_ID)
Any help would be appreciated, thanks.