A collaborative knowledge base records every edit made to its articles. The community team wants to monitor how much of each month's active editor population consists of unusually frequent contributors.
edit_id is the primary key. Each row represents one completed article edit.
For each calendar month, count the edits made by every editor. An active editor is any editor with at least one edit in that month. A power editor is an editor with more than 30 edits in the same month. An editor with exactly 30 edits is active but is not a power editor.
For every month present in the table, return:
month in YYYY-MM format
active_editors, the number of distinct editors with at least one edit
power_editors, the number of those editors with more than 30 edits
pct_power_editors, calculated as power_editors / active_editors * 100 and rounded to 2 decimal places
Order the results by month ascending.
Example
Input:
The table below is abbreviated; each range represents individual edit rows.
January has three active editors. Only editor 1 exceeds 30 edits, so the percentage is 1 / 3 * 100 = 33.33. February has two active editors, and editor 4 is the only power editor, producing 50.00.