Write the SQL query in real time and explain how you approached it.
Using the provided tables, return each active customer with at least one qualifying transaction, their successful 2025 transaction total, and their rank within their state. Qualifying transactions are completed transactions dated in calendar year 2025.
full_name, state, total_successful_amount, and state_rank.state, state_rank, and full_name.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique customer identifier |
| full_name | VARCHAR(100) | Customer's full name |
| state | VARCHAR(2) | Two-letter customer state code |
| is_active | BOOLEAN | Whether the customer is active |
| Column | Type | Description |
|---|---|---|
| transaction_idPK | INT | Unique transaction identifier |
| user_id | INT | Customer who made the transaction |
| transaction_date | DATE | Date the transaction occurred |
| amount | NUMERIC(10,2) | Transaction amount |
| status | VARCHAR(20) | Transaction processing status |