How to create and refresh a Materialized view in Redshift

Syntax to create materialized view:

create materialized view mv_name as (select statement);

Syntax to refresh materialized view:

REFRESH MATERIALIZED VIEW mv_name;

See also  How to create an IAM role and attach it to the EC2 Instance