Write the SQL queries for the questions.
Using customers, subscriptions, and payments, return active customers whose subscription overlaps January 2025 and summarize their successful January payments. Include active customers with no qualifying payment and assign a payment tier based on the total.
Output
- One row per qualifying active customer with
customer_id, customer_name, total_january_paid, and payment_tier.
- Include customers with zero qualifying payments; classify totals of at least 300 as
High, totals from 100 through 299.99 as Standard, and lower totals as Low.
- Order by
total_january_paid descending, then customer_id ascending.