Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Find Common Partner Issue Types

MediumSQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Find Common Partner Issue Types. Start with the requirements and the three tables on the right.

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.

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
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results