Could anyone make a suggestion as to how to correctly produce a view for a crosstab report? I can't find any way to "pivot" the results, and have only been able to produce rows based on rollup etc, which then requires rather complicated code to manually pivot the results for output to a html table.
For example, I have the following in one table, AFLPrice:
I tried one of the examples at the asktom site, using types and arrays, but the results are still pretty awful, requiring heaps of parsing (I think). The output was, for one row:
It also seemed rather slow... is there a significant performance hit using types and arrays to do this job?
The alternative may be to pre-determine the number of Bookmakers available, and construct the sql dynamically somehow, using the old decode/grouping technique...
As an Oracle novice, I am still surprised that this is so, well, awkward, at performing what I'd call a pretty common crosstab query.
If anyone has a 'tidier' &/or faster(?) way to do this, I'd really appreciate hearing from you!
Many thanks, Max
Max Hugen
Hugen Enterprises Pty Ltd
www.hugen.com.au
Bookmarks