Engagement teams at Meta want to track which contests are most popular among the user base. You need to determine the registration percentage for every contest.
Write an SQL query to find the percentage of the users registered in each contest rounded to two decimals.
| user_id(INTEGER) | user_name(VARCHAR) |
|---|---|
| 6 | Alice |
| 2 | Bob |
| 7 | Alex |
| contest_id(INTEGER) | user_id(INTEGER) |
|---|---|
| 215 | 6 |
| 209 | 2 |
| 208 | 2 |
| 210 | 6 |
| 208 | 6 |
| 209 | 7 |
| 209 | 6 |
| 215 | 7 |
| 208 | 7 |
| 210 | 2 |
| 207 | 2 |
| 210 | 7 |
| contest_id(INTEGER) | percentage(FLOAT) |
|---|---|
| 208 | 100 |
| 209 | 100 |
| 210 | 100 |
| 215 | 66.67 |
| 207 | 33.33 |