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
ExperiencesCoaching
New
Practice
Mock InterviewsTimed interview simulations with feedbackSuccess 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
Get started
Average Meetings per User per Day
00:00
5 left

Average Meetings per User per Day

MediumSQL · PostgreSQL

Problem

Using the same User / Meeting / Activity tables, write a SQL query to compute the average number of meetings attended per day across all users in the past one month.

Asked in the phone screen stage. Problem #1b.

Output

  1. One row per date represented by a meeting in the period.
  2. Columns: Date, Average Number of Meetings.
  3. Include all users in each daily average, including users with no attended meetings.
  4. Sort by Date ascending.

Schema

users
ColumnTypeDescription
user_idPKINTUnique Zoom user identifier
emailVARCHAR(255)User email address
meetings
ColumnTypeDescription
meeting_idPKINTUnique meeting identifier
organizer_idINTUser who organized the meeting
meeting_titleVARCHAR(255)Meeting title
started_atTIMESTAMPMeeting start timestamp
activities
ColumnTypeDescription
activity_idPKINTUnique activity identifier
meeting_idINTReferenced meeting
user_idINTUser who generated the activity
activity_typeVARCHAR(50)Activity status such as attended, joined, or declined
Tablesusersmeetingsactivities
Interviewer

Your question is Average Meetings per User per Day. Start with the requirements and the three 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.