mimivdg2002
MIS
I need to create a report that keeps track of signed/unsigned records for internal programs of different departments. The following is an example of the data layout:
DeptID ProgramID Sent_Date Signed_Date
1 1 10/10/04
1 2 10/12/04
1 3 10/1/04 10/31/04
1 4 11/1/04
1 5 8/2/04 9/30/04
2 1 5/2/04 7/5/04
2 2 5/2/04
and so on...
I have a report created from two queries. I need to create it from two queries because the criteria is different.
Query 1
Gets records for which the "Sent_date" is not null and the "Signed_date" is null, essentially get the records which have been sent but not signed.
Query 2
Gets the records whose "Signed_Date" is not null (records which have been signed).
Here is the problem, when I create my report from these two queries, it looks like I get a cartesian product. Here is what my report displays:
DeptID [Sent Programs] [Signed Programs]
1 Program 1 Program 3
1 Program 1 Program 5
1 Program 2 Program 3
1 Program 2 Program 5
1 Program 4 Program 3
1 Program 4 Program 5
Essentially, what the report seems to do is duplicate the sent programs by the number of signed programs. How can I avoid this problem?
Thanks
M
DeptID ProgramID Sent_Date Signed_Date
1 1 10/10/04
1 2 10/12/04
1 3 10/1/04 10/31/04
1 4 11/1/04
1 5 8/2/04 9/30/04
2 1 5/2/04 7/5/04
2 2 5/2/04
and so on...
I have a report created from two queries. I need to create it from two queries because the criteria is different.
Query 1
Gets records for which the "Sent_date" is not null and the "Signed_date" is null, essentially get the records which have been sent but not signed.
Query 2
Gets the records whose "Signed_Date" is not null (records which have been signed).
Here is the problem, when I create my report from these two queries, it looks like I get a cartesian product. Here is what my report displays:
DeptID [Sent Programs] [Signed Programs]
1 Program 1 Program 3
1 Program 1 Program 5
1 Program 2 Program 3
1 Program 2 Program 5
1 Program 4 Program 3
1 Program 4 Program 5
Essentially, what the report seems to do is duplicate the sent programs by the number of signed programs. How can I avoid this problem?
Thanks
M