Section 1: Views
Section 1: Views
1. Review Questions
- What is a View in PostgreSQL?
- Why do we use Views?
- Can a View be created using multiple tables?
- What is the purpose of CREATE OR REPLACE VIEW?
- How can we rename a View?
- How can we delete a View?
- Does deleting a View delete the original table?
- What is the difference between a normal View and a table?
- Can we update data through every view?
Section 2: Materialized Views
- What is a Materialized View in PostgreSQL?
- What is the main difference between a View and a Materialized View?
- Does a Materialized View automatically update when source table data changes?
- Which command refreshes a Materialized View?
- What is the purpose of
WITH NO DATA?
- What is the purpose of
REFRESH MATERIALIZED VIEW CONCURRENTLY?
- How can we list all Materialized Views in PostgreSQL?