Meta wants to know which company pages reach the most people. A page's reach is the number of distinct users who interacted with it in any way (like, comment, follow or share). reach_pct is reach divided by the total number of users in the users table, including users who never interacted with anything, times 100. Only pages with page_type = 'company' are ranked; colleges are excluded. Write an SQL query that returns the top 3 company pages as page_name, users_reached and reach_pct rounded to 2 decimal places. Order by users_reached descending, then page_name ascending.
Loading…
Try solving the question with the schema explorer and hints first. When ready, reveal the verified canonical query and step-by-step logic breakdown.
Ask questions, share alternate queries, and explore solutions
Your recent query executions and answer checks
This will insert the verified MySQL solution into your editor so you can study how each clause transforms the table.