Hi
Am using CR8.5 and SQL2000.
I am trying to write a report extracting infomration from a sales database.
I wish to group data by
Group 1 - media code (a 3 figure code assigned to a customer group type) and specific to a mail order campaign e.g. Winter 2004 or Spring 2005, on the first media code in the list
Group 2 - sales order number and then all the sales order items in the details details. I will only show summaries for the report audience, but need the full infomration in the report to validate it.
However, the problem I am encountering is that a sales order may be split across several media codes if the order contains items from different sales campaigns.
ie an order may look like this:
Ordre Number 123456
Product Code Item number Quantity Media Code
28564 1 1 LJZ
65489 2 5 OHV
34741 3 2 LJZ
89113 4 1 LJZ
46587 5 1 NTN
If I group by media code I will get 3 occurences of this order on the report
Grp 1 LJZ
Group 2 123456
Details 28564 1 1 LJZ
34741 3 2 LJZ
89113 4 1 LJZ
Grp 1 OHV
Group 2 123456
Details 65489 2 5 OHV
Grp 1 NTN
Group 2 123456
Details 46587 5 1 NTN
What I want to be able to show is:
Grp 1 LJZ
Group 2 123456
Details 28564 1 1 LJZ
65489 2 5 OHV
34741 3 2 LJZ
89113 4 1 LJZ
46587 5 1 NTN
Any suggestions?
Thanks, Ade
Am using CR8.5 and SQL2000.
I am trying to write a report extracting infomration from a sales database.
I wish to group data by
Group 1 - media code (a 3 figure code assigned to a customer group type) and specific to a mail order campaign e.g. Winter 2004 or Spring 2005, on the first media code in the list
Group 2 - sales order number and then all the sales order items in the details details. I will only show summaries for the report audience, but need the full infomration in the report to validate it.
However, the problem I am encountering is that a sales order may be split across several media codes if the order contains items from different sales campaigns.
ie an order may look like this:
Ordre Number 123456
Product Code Item number Quantity Media Code
28564 1 1 LJZ
65489 2 5 OHV
34741 3 2 LJZ
89113 4 1 LJZ
46587 5 1 NTN
If I group by media code I will get 3 occurences of this order on the report
Grp 1 LJZ
Group 2 123456
Details 28564 1 1 LJZ
34741 3 2 LJZ
89113 4 1 LJZ
Grp 1 OHV
Group 2 123456
Details 65489 2 5 OHV
Grp 1 NTN
Group 2 123456
Details 46587 5 1 NTN
What I want to be able to show is:
Grp 1 LJZ
Group 2 123456
Details 28564 1 1 LJZ
65489 2 5 OHV
34741 3 2 LJZ
89113 4 1 LJZ
46587 5 1 NTN
Any suggestions?
Thanks, Ade