Creating materialized views - AWS Prescriptive Guidance

Creating materialized views

You can create a materialized view based on one or more of the following:

When you create a materialized view, Amazon Redshift runs the user-specified SQL statement to gather the data from the base table or tables. Then, Amazon Redshift stores the result set.

The following illustration provides an overview of a materialized view called mv_total_orders. This view is defined by a SQL query that uses two base tables: customer and order.

SQL query with two base tables