Weekly Active Collaborators and Multi-Base Editors per Workspace

Last updated: November 29, 2026

Quick Overview

Given a cell edit log and a table mapping bases to workspaces, compute for each workspace and week the number of distinct people who edited something and the share of them who edited in two or more different bases, counting only edits made by people.

Airtable
Data Manipulation (SQL/Python)
Data Scientist
Airtable
November 29, 2026
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
Easy

0

0

0 solved


Given a cell edit log and a table mapping bases to workspaces, compute for each workspace and week the number of distinct people who edited something and the share of them who edited in two or more different bases, counting only edits made by people.

Collaboration breadth inside a workspace is a leading signal for seat expansion in a product like Airtable. This SQL screen checks clean grouping at two grains and whether you notice that automations and API writes inflate naive activity counts.

What the Interviewer Expects
  • Clarify what counts as an active collaborator and the week boundary
  • Filter out non-human edit sources
  • Aggregate first at user-week grain, then at workspace-week
  • Use COUNT DISTINCT correctly
  • Sanity check results against a small hand example
Key Topics to Cover
GROUP BY
COUNT DISTINCT
CTEs
Date truncation
Metric definition
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • How would you show weeks with zero activity for a workspace?
  • How would you compute the 4-week retention of new collaborators?
  • What if bases can move between workspaces over time?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

cell_edits(user_id, base_id, edited_at, source) where source is one of user, automation, api or sync, and bases(base_id, workspace_id). Weeks start Monday in UTC. A collaborator is active in a w...

Approach

First collapse the log to one row per workspace, week and user, carrying how many distinct bases that user touched. Then aggregate that to workspace and week: the row count is active collaborators, an...


Submit Your Answer
Markdown supported

Related Questions