Answer by Matt Whitfield
Indexed views are the easy way. The complicated bit about them is getting them to work in the first place by fulfilling the requirements (i.e. fully deterministic, schema-bound data). But once you've...
View ArticleAnswer by Kev Riley
The rough equivalent is indexed views, as you have already discovered.The other alternative, like you have already mentioned, is to build this data into a real table (akin to datawarehousing), but this...
View ArticleAnswer by TimothyAWiseman
Matt and Kev are both completely right, but one thing to remember is that if you are not using Enterprise edition you may need to use the NoExpand query hint to take full advantage of the view. More...
View ArticleAnswer by Repriser
On the base table, you can create "computed columns" ("PERSISTED"). With that you can create views and/or indexed views using those columns. Jason http://dbace.us ,
View ArticleAnswer by betibeau
depending on the velocity of insert or update on the base table (the one to be aggregate or calculation made with) just create a specific table for reporting. And, based on the frequency of change...
View ArticleAnswer by betibeau
around the new table containing the calculated figures, you could deploy a simple delta detection to avoid a complete recreation (when rquired), and then apply update/insert/delete or flag as logically...
View Article