Secure View — Data hidden from users; predicates applied
CREATE TRANSIENT TABLE temp_data (id INT);
CREATE MATERIALIZED VIEW daily_sales AS
SELECT DATE_TRUNC('day', sale_ts), SUM(amount)
FROM sales GROUP BY 1;
✏️ Exercise: Create a permanent table, a transient table, and a materialized view. Compare the storage costs using ACCOUNT_USAGE views.