PostgreSQL - Views and Materialized Views
You want to create a view
customer_orders that shows each customer's name and the total amount they spent. Which of these is the correct way to create this view assuming tables customers(id, name) and orders(customer_id, amount)?