Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
SQL for Weekly Team Performance
00:00
5 left

SQL for Weekly Team Performance

MediumSQL · PostgreSQL

Problem

Duolingo's Operations Manager needs a weekly view of operational task performance across teams supporting the Duolingo app, Duolingo Max, and the Duolingo English Test. Write a PostgreSQL query that joins task records with team metadata and calculates completion rates for January 2025.

Requirements

  1. Group results by Monday-based week and team.
  2. Return total tasks, completed tasks, and completion rate as a percentage rounded to one decimal place.
  3. Include only tasks assigned during January 2025 and only tasks associated with a known team.
  4. Sort results by week and team name.

Schema

teams
ColumnTypeDescription
team_idPKINTEGERUnique team identifier
team_nameVARCHAR(100)Operations team name
regionVARCHAR(50)Primary operating region
operating_modelVARCHAR(50)How the team operates
tasks
ColumnTypeDescription
task_idPKINTEGERUnique task identifier
team_idINTEGERReferences teams.team_id
task_typeVARCHAR(50)Operational task category
assigned_atDATEDate the task was assigned
statusVARCHAR(20)Current task status
Tablestasksteams
Interviewer

Your question is SQL for Weekly Team Performance. Start with the requirements and the two tables in the Question tab.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.
CodePostgreSQL
Sign up free to run your codeLog inLn 1
Run your query to see results here.