Subject | RE: [firebird-support] Query Help? |
---|---|
Author | Lee Jenkins |
Post date | 2004-09-05T02:38:25Z |
> One method I have read about ( in SQL for SMARTIES by Joe Celko) is to<=== snip ===============>
> create an identity matrix for the months and then join that to the Sales
> table ( ItemsPermanent2).
>
> The matrix should look something like this:
> M Jan Feb Mar Apr ......
> 1 1 0 0 0
> 2 0 1 0 0
> 3 0 0 1 0
> 4 0 0 0 1
Very nice. Long weekend for me so I will try it first thing Tuesday morning,
bright and early :) Very shrewd way of tackling the problem though...I'm
look forward to timing it.
Thanks Andy,
Lee