Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Aggregate Table
Message
 
 
À
02/06/2007 14:14:05
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01229967
Message ID:
01230064
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>Is it possible to define/ create aggregate tables which store monthly or yearly totals. So that it doesn't take any time to calculate these totals.
>I am asking about table as i think a view would still take time to calculate.

You can do that with a table or with indexed view. To maintain the aggregate table you'll have to create a trigger(s) on the original table that will update the aggregate table. For indexed views see Designing Indexed Views in BOL. In both cases you will have to consider how much overhead it will create for original table INSERT/DELETE/UPDATE operations.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform