Re: Calculated "virtual" rows
Posted by: Rick James
Date: August 02, 2012 08:31AM

Suggest you take it in stages. Perhaps use "temporary tables" for the extra stages. Example: computing the admin costs.

Do you have the hierarchy depth of each field with the field? That might help in this approach to the "rollup":
Calc level 6 from level 7 data;
Calc level 5 from level 6 data;
etc

The bottom line is that the complexity of the data is more than can easily be handled in SQL. Or, to rephrase, the complexity of the data will have to be mirrored in the complexity of the SQL.

You probably should be using some programming language (Java, Perl, PHP, VB, ...) for the "business logic", and let the database be "dumb storage". It is messy to do complex logic in SQL.

Options: ReplyQuote


Subject
Written By
Posted
July 11, 2012 04:03AM
July 18, 2012 03:56AM
July 29, 2012 05:07AM
August 01, 2012 12:38PM
Re: Calculated "virtual" rows
August 02, 2012 08:31AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.