M
Mr.Matthew.Smith
Hi,
I have a data relationship which is 'orders' and 'order dates' mapped
out in a dataset with relations and viewed via two datagrids.
I have the dates broken down by week so the order dates grid shows how
many orders per week.
The weekly break down is performed in the sql query (datepart(week) etc
etc) but if there aren't any orders for that week it skips the week. So
for January it'll read
Week Month Total
1 Jan 5
2 Jan 6
4 Jan 2
....
what I would like to have is
Week Month Total
1 Jan 5
2 Jan 6
3 Jan 0
4 Jan 2
....
Now I was shown some sql code that accomplishes this via a cross join
but I noticed that it takes a little time to run and that's will a
small sampling of the data I intend to use it on.
So basically my question is, is there a better way to do this ?
Thanks
I have a data relationship which is 'orders' and 'order dates' mapped
out in a dataset with relations and viewed via two datagrids.
I have the dates broken down by week so the order dates grid shows how
many orders per week.
The weekly break down is performed in the sql query (datepart(week) etc
etc) but if there aren't any orders for that week it skips the week. So
for January it'll read
Week Month Total
1 Jan 5
2 Jan 6
4 Jan 2
....
what I would like to have is
Week Month Total
1 Jan 5
2 Jan 6
3 Jan 0
4 Jan 2
....
Now I was shown some sql code that accomplishes this via a cross join
but I noticed that it takes a little time to run and that's will a
small sampling of the data I intend to use it on.
So basically my question is, is there a better way to do this ?
Thanks