cjard
March 30th, 2005, 04:19 AM
Hi
I am using CR8.5 (though i have a copy of 10 that I have not installed yet because work only just bought it) and i am trying to create a crosstab query out of the following scenario:
Imagine we have a single database table that records shop purchases:
Field1: Date of transaction in YYYYMMDD format
Field2: The ID of the shop
Field3: The amount of the transaction
Now, i want a yearly crosstab report with the months across the top (12 columns)
and the shops down the side, so i can see how much each shop did per month over the last year
My problem comes because I cannot find a way to make CR trim off the last 2 digits of the date, which would remove the days from the grouping and group by months:
200501
200502
...
At the moment, im getting 365 columns because the transactions are group[ed by day rather than month:
20050101
20050102
...
How can i change this? I'm using an Oracle back end DB and "Group on server" is ticked
Thanks
I am using CR8.5 (though i have a copy of 10 that I have not installed yet because work only just bought it) and i am trying to create a crosstab query out of the following scenario:
Imagine we have a single database table that records shop purchases:
Field1: Date of transaction in YYYYMMDD format
Field2: The ID of the shop
Field3: The amount of the transaction
Now, i want a yearly crosstab report with the months across the top (12 columns)
and the shops down the side, so i can see how much each shop did per month over the last year
My problem comes because I cannot find a way to make CR trim off the last 2 digits of the date, which would remove the days from the grouping and group by months:
200501
200502
...
At the moment, im getting 365 columns because the transactions are group[ed by day rather than month:
20050101
20050102
...
How can i change this? I'm using an Oracle back end DB and "Group on server" is ticked
Thanks