Write a SQL query to find the top customers by total deposits within each sector at Rabobank. Use the provided sector, customer, and deposit data. Include tied top customers, and treat a customer with no non-null deposit amount as having a total of zero.
Output
- One row per top customer within a sector, with
sector_name, customer_id, customer_name, total_deposits, and rank_in_sector.
- Include every customer tied for the highest total in their sector.
- Order by
sector_name, total_deposits descending, and customer_id.