Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Defect Counts by Component and Release

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

Your question is Defect Counts by Component and Release. Start with the requirements and the one table 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

Apex Systems QA engineers need a compact defect summary for each product release. Write a PostgreSQL query against Apex defect records to compare how many defects were reported for each component and release.

Requirements

  1. Exclude records where the component or release is unknown.
  2. Return one row per component and release with the defect count, ordered by component and release.

Schema

defect_reports
ColumnTypeDescription
defect_idPKINTUnique defect identifier
componentVARCHAR(50)Apex product component containing the defect
release_nameVARCHAR(20)Apex product release associated with the defect
Tablesdefect_reports
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results