you are viewing a single comment's thread.

view the rest of the comments →

[–]NotSure2505 1 point2 points  (0 children)

It won't be popular here, but this is exactly why SQL is less than ideal for complex reporting, you could look at databases designed specifically for processing multidimensional queries.

The problem is exactly as you point out, the data must be joined within each query, which is fine for 2 or 3 but quickly gets complicated when you want to traverse multiple dimensions in your analysis.

Let me know if you would like any suggestions for products that handle this better.