Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Computed Column Formula
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01186698
Message ID:
01186740
Vues:
17
>I want to store a conditional sum of either one or two columns. Do you still think the view is a way to go ?
>
>Thank you,
>daniel

In my opinion ANY computed columns, Columns results of Aggregate functions MUST be ONLY in queries or views. No need to store them in actual tables, this is just waste of space and performance. How do you plan to maintain that column? If you change the value of A you must also change the value of that column. If you put it in View and base your queries on that view instead of actual table you always will have computed column with valid data in it. Also if you didn't want to have view you always can add that column in your queries.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform