Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select and set to variable
Message
De
08/03/2015 03:20:45
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01616353
Message ID:
01616422
Vues:
34
>Besides, in database theory you don't store sums in any table.

Many database applications store snapshot tables with aggregations.

As an example, when I worked in WIC, we created snapshot tables at the end of the month to store a picture of participation, plus tallies/sums of children, infants, and women on the program by county. Big help for historical reporting.

In many accounting applications, end of month/period snapshot tables are generated as part of end of period lockdown procedures. The numbers you see on a P&L (gross dollars, costs, spending, net revenue, net profit, etc.) are likely stored as aggregations in the snapshot table. Again, big help for historical reporting.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform