Explain how you would approach medium-level LeetCode and database-related questions.
Use the provided tables to demonstrate a complete database solution that combines account, contact, and engagement information. Return only active accounts that meet the engagement threshold.
Output
- One row per qualifying active account, with
industry, company_name, total_score, engagement_count, engagement_status, and industry_rank.
- Include accounts with at least 100 total engagement points during 2024, ranking ties equally within each industry.
- Sort by
industry ascending, industry_rank ascending, and company_name ascending.