← Back to Tutorials

9. Table & View Types

Table Types

TypeFail-safeTime TravelCost
Permanent7 days0-90 daysStandard
TransientNone0-1 dayLower
TemporaryNone0-1 daySession-only

View Types

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.