The Plan for Returned Orders
EasyDescription
Write a query on orders that lists the order_id and total_amount of the orders whose
status is returned. Don't give the table an alias.
Instead of the orders, show the plan PostgreSQL picks for this query: only its steps, without the estimated costs. Don't run the query itself.
Tables
| orders |
|---|
| order_id (PK) |
| customer_id (FK) |
| order_date |
| status |
| total_amount |
| shipping_city |