Skip to content

Commit abdd38d

Browse files
committed
add distinct function example 4
1 parent 99ca83a commit abdd38d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/statements/create-materialized-view-as-select-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ When MIN/MAX aggregates are used in the SELECT list of materialized view definit
108108
A materialized view in Azure data warehouse is similar to an indexed view in SQL Server.  It shares almost the same restrictions as indexed view (see [Create Indexed Views](/sql/relational-databases/views/create-indexed-views) for details) except that a materialized view supports aggregate functions.  
109109

110110
>[!Note]
111-
>Although CREATE MATERIALIZED VIEW does not support COUNT(), DISTINCT, COUNT(DISTINCT expression), or COUNT_BIG (DISTINCT expression), SELECT queries with these functions can still benefit from materialized views for faster performance as the Synapse SQL optimizer can automatically re-write those aggregations in the user query to match existing materialized views. For details, check this article's example section.
111+
>Although CREATE MATERIALIZED VIEW does not support COUNT, DISTINCT, COUNT(DISTINCT expression), or COUNT_BIG (DISTINCT expression), SELECT queries with these functions can still benefit from materialized views for faster performance as the Synapse SQL optimizer can automatically re-write those aggregations in the user query to match existing materialized views. For details, check this article's example section.
112112
113113
Only CLUSTERED COLUMNSTORE INDEX is supported by materialized view.
114114

0 commit comments

Comments
 (0)