Walk me through your approach to solving basic to medium SQL questions you have practiced, including example queries you would write. Use the provided customer and order data to demonstrate a representative query that summarizes qualifying customers.
Output
- One row per active customer with at least two completed orders in 2025
- Columns:
customer_name, region, order_count, total_completed_revenue, latest_completed_order, and revenue_rank
- Rank customers within each region by revenue descending, include ties, and order by
region, revenue_rank, then customer_id