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
Find Common Partner Issue Types
00:00
5 left

Find Common Partner Issue Types

MediumSQL · PostgreSQL

Problem

Google Operations teams monitor issue reports from partners across products such as Google Ads, YouTube, and Firebase. Write a PostgreSQL query to identify the most common issue type or types for each partner during the 30 days ending on August 30, 2026.

Output

  1. Return one row per partner and issue type tied for the highest report count during the reporting window.
  2. Include partner_name, issue_type_name, and report_count.
  3. Exclude reports with a NULL issue type or an unmatched partner or issue type.
  4. Include reports from August 1, 2026 through August 30, 2026, inclusive.
  5. Sort by partner_name, then descending report_count, then issue_type_name.

Rows with a NULL issue type are excluded because they cannot be classified.

Schema

partners
ColumnTypeDescription
partner_idPKINTUnique partner identifier
partner_nameVARCHAR(100)Partner or Google product name
issue_types
ColumnTypeDescription
issue_type_idPKINTUnique issue type identifier
issue_type_nameVARCHAR(100)Human-readable issue classification
partner_issues
ColumnTypeDescription
issue_idPKINTUnique issue report identifier
partner_idINTReferences partners.partner_id
issue_type_idINTReferences issue_types.issue_type_id
occurred_atTIMESTAMPTZTimestamp when the issue was reported
statusVARCHAR(30)Current issue status
Tablespartnersissue_typespartner_issues
Interviewer

Your question is Find Common Partner Issue Types. 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.