0
0
PostgreSQLquery~10 mins

REFRESH MATERIALIZED VIEW in PostgreSQL - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to refresh the materialized view named 'sales_summary'.

PostgreSQL
REFRESH [1] sales_summary;
Drag options to blanks, or click blank then click option'
AMATERIALIZED VIEW
BTABLE
CVIEW
DINDEX
Attempts:
3 left
💡 Hint
Common Mistakes
Using REFRESH VIEW instead of REFRESH MATERIALIZED VIEW.
Using REFRESH TABLE which is not valid for materialized views.
2fill in blank
medium

Complete the code to refresh the materialized view 'inventory_status' concurrently.

PostgreSQL
REFRESH MATERIALIZED VIEW [1] inventory_status;
Drag options to blanks, or click blank then click option'
ANOWAIT
BIMMEDIATELY
CCONCURRENTLY
DFAST
Attempts:
3 left
💡 Hint
Common Mistakes
Using NOWAIT which is not valid here.
Omitting CONCURRENTLY when concurrent reads are needed.
3fill in blank
hard

Fix the error in the code to refresh the materialized view 'user_stats' concurrently.

PostgreSQL
REFRESH MATERIALIZED VIEW [1] user_stats;
Drag options to blanks, or click blank then click option'
ACONCURRENTLY
BFAST
CIMMEDIATE
DNOWAIT
Attempts:
3 left
💡 Hint
Common Mistakes
Using IMMEDIATE or FAST which are invalid.
Misspelling CONCURRENTLY.
4fill in blank
hard

Fill both blanks to refresh the materialized view 'daily_report' without locking reads.

PostgreSQL
REFRESH [1] [2] daily_report;
Drag options to blanks, or click blank then click option'
AMATERIALIZED VIEW
BTABLE
CCONCURRENTLY
DVIEW
Attempts:
3 left
💡 Hint
Common Mistakes
Using TABLE or VIEW instead of MATERIALIZED VIEW.
Omitting CONCURRENTLY when concurrent refresh is needed.
5fill in blank
hard

Fill all three blanks to refresh the materialized view 'monthly_summary' concurrently.

PostgreSQL
REFRESH [1] [2] [3] monthly_summary;
Drag options to blanks, or click blank then click option'
AMATERIALIZED
BVIEW
CCONCURRENTLY
DTABLE
Attempts:
3 left
💡 Hint
Common Mistakes
Using TABLE instead of VIEW.
Placing CONCURRENTLY before MATERIALIZED or VIEW.