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
Find Duplicate Telemetry Records
00:00
5 left

Find Duplicate Telemetry Records

MediumSQL · PostgreSQL

Problem

Write a query to identify duplicate records in a large manufacturing telemetry table using common table expressions.

Treat records as duplicates when all telemetry attributes except telemetry_id match, including rows with NULL attribute values. Return one row for each duplicated signature.

Output

  1. Columns: tool_id, sensor_name, observed_at, reading_value, unit, quality_flag, duplicate_count, and telemetry_ids
  2. Include only signatures occurring more than once
  3. Sort by tool_id, sensor_name with NULLs last, observed_at, and reading_value

Schema

manufacturing_telemetry
ColumnTypeDescription
telemetry_idPKBIGINTUnique telemetry record identifier
tool_idVARCHAR(50)Manufacturing tool identifier
sensor_nameVARCHAR(80)Sensor that produced the observation
observed_atTIMESTAMPTime at which the telemetry was observed
reading_valueNUMERIC(12,4)Numeric sensor reading
unitVARCHAR(20)Measurement unit
quality_flagVARCHAR(20)Telemetry quality classification
Tablesmanufacturing_telemetry
Interviewer

Your question is Find Duplicate Telemetry Records. Start with the requirements and the one table 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.