Database application Development (i)

Source: Internet
Author: User
Data | database
Example (a company structure that calculates sales for each company):

A

B1 B2

B11 B12 B13 B21 B22 B23

....

Data: B11 (MB), B12 (B13), B21 (a) B22 () B23 (260) units: (million)

The total sales of each company are required, for example:

B1=b11+b12+b13 =100+120+60=280

b2=b21+b22+b23=90+70+260=420

a=b1+b2=700

To dynamically compute in real time

In practical applications there can be many ways to computer any point value!

1. Can be used in a progressive summary of the way

2. Can be grouped by way of summary (the purpose of this article)



Note: Compute the root node value with a few more code-optimized algorithms!

(not completed, to be continued)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.