| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: theory and practice: ying and yang
mountain man wrote:
>>What if a report with subtotals at various levels is required?
Sounds possible but a bit painful to do - a case of everything looking like a nail when all you have is a hammer.
>>Or other >>fancy stuff like running totals, subreports etc?
Commonly you may want to view subreports at the same time as the main report though.
> Running totals can be written in temp tables
> if the coding is too intensive in one step.
Running totals are possible in SQL but it would make for fairly ugly code, and a client reporting tool could do it much better.
>> Or crosstab reports?
Very awkward to do, I'd say. SQL returns results with a fixed number of columns. To get a cross-tab style report where the columns aren't known in advance is impossible with standard SQL - you'd have to use "dynamic SQL" or some other kludge.
>> This kind of thing, which is basically presentation rather than >> data extraction is better done by a client tool, is it not?
A DBMS is very good at extracting data in a fixed-column tabular form, but this is all about presenting that data in formats that don't fit that template. I'd argue that that job is much better done by a client tool.
Paul. Received on Tue Jun 07 2005 - 10:24:19 CDT
![]() |
![]() |