Meta communities thrive on engagement. To identify high-density communities, the Analytics team wants to find the most active Facebook Group based on the average number of posts created per member.
| group_id(INTEGER) | group_name(VARCHAR) | created_at(DATE) |
|---|---|---|
| 1 | SQL Enthusiasts | 2024-01-01 |
| 2 | Meta Engineers | 2024-01-05 |
| 3 | Travel Bloggers | 2024-01-10 |
| group_id(INTEGER) | user_id(INTEGER) |
|---|---|
| 1 | 101 |
| 1 | 102 |
| 2 | 101 |
| 2 | 103 |
| 2 | 104 |
| 3 | 105 |
| post_id(INTEGER) | group_id(INTEGER) |
|---|---|
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 4 | 2 |
| 5 | 2 |
| 6 | 3 |
| 7 | 3 |
| group_name(VARCHAR) | total_members(INTEGER) | total_posts(INTEGER) | activity_score(DECIMAL) |
|---|---|---|---|
| Travel Bloggers | 1 | 2 | 2 |