PostgreSQL - Views and Materialized Views
You created a view with:
But running
CREATE VIEW recent_sales AS SELECT * FROM sales WHERE sale_date > CURRENT_DATE - INTERVAL '7 days';
But running
SELECT * FROM recent_sales; returns an error. What is the likely cause?