You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/t-sql/statements/create-materialized-view-as-select-transact-sql.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ When MIN/MAX aggregates are used in the SELECT list of materialized view definit
98
98
GROUP BYi.i_item_sk, i.i_item_id, i.i_category_id
99
99
```
100
100
101
-
- The materialized view will be disabled when an UPDATE or DELETE occurs in the referenced base tables. This restriction doesn't apply to INSERTs. To re-enable the materialized view, run ALTER MATERIALIZED INDEX with REBUILD.
101
+
- The materialized view will be disabled when an UPDATE or DELETE occurs in the referenced base tables. This restriction doesn't apply to INSERTs. To re-enable the materialized view, run ALTER MATERIALIZED VIEW with REBUILD.
102
102
103
103
## Remarks
104
104
@@ -119,9 +119,9 @@ ALTER TABLE SWITCH is not supported on tables that are referenced in materialize
119
119
|Scenario|New columns to add to materialized view|Comment|
|COUNT_BIG() is missing in the SELECT list of a materialized view definition| COUNT_BIG (*) |Automatically added by materialized view creation. No user action is required.|
122
-
|SUM(a) is specified by users in the SELECT list of a materialized view definition AND ‘a’ is a nullable expression |COUNT_BIG (a) |Users need to add the expression ‘a’ manually in the materialized view definition.|
123
-
|AVG(a) is specified by users in the SELECT list of a materialized view definition where ‘a’ is an expression.|SUM(a), COUNT_BIG(a)|Automatically added by materialized view creation. No user action is required.|
124
-
|STDEV(a) is specified by users in the SELECT list of a materialized view definition where ‘a’ is an expression.|SUM(a), COUNT_BIG(a), SUM(square(a))|Automatically added by materialized view creation. No user action is required. |
122
+
|SUM(a) is specified by users in the SELECT list of a materialized view definition AND 'a' is a nullable expression |COUNT_BIG (a) |Users need to add the expression 'a' manually in the materialized view definition.|
123
+
|AVG(a) is specified by users in the SELECT list of a materialized view definition where 'a' is an expression.|SUM(a), COUNT_BIG(a)|Automatically added by materialized view creation. No user action is required.|
124
+
|STDEV(a) is specified by users in the SELECT list of a materialized view definition where 'a' is an expression.|SUM(a), COUNT_BIG(a), SUM(square(a))|Automatically added by materialized view creation. No user action is required. |
125
125
||||
126
126
127
127
Once created, materialized views are visible within SQL Server Management Studio under the views folder of the Azure SQL Data Warehouse instance.
0 commit comments