Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select and set to variable
Message
 
 
À
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:
01616425
Vues:
30
>>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.

They can be useful for aggregation in historical tables, I will grant you that. But not in tables used every day for normal business use. It's asking for trouble. And it's asking for trouble in historical tables if the number isn't right.

What is WIC?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform