Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
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 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
Build my plan
Top Updated Map Segments Query
00:00
5 left

Top Updated Map Segments Query

MediumSQL · PostgreSQL

Problem

HERE Technologies monitors map quality by tracking changes made to segments in the HERE map database. Write a PostgreSQL query to identify the five most frequently updated map segments in the Central Europe region during the 30-day period ending February 15, 2025.

Requirements

  1. Count updates for each map segment using only updates from January 16, 2025 through February 15, 2025, inclusive.
  2. Restrict results to the Central Europe region.
  3. Return the five segments with the highest update counts, including ties in the ordering by segment_id ascending.

Schema

map_segments
ColumnTypeDescription
segment_idPKINTUnique map segment identifier
segment_nameVARCHAR(100)Human-readable segment name
region_nameVARCHAR(50)HERE map region containing the segment
is_activeBOOLEANWhether the segment is currently active
segment_updates
ColumnTypeDescription
update_idPKINTUnique update event identifier
segment_idINTUpdated map segment
updated_atTIMESTAMPTimestamp when the update was recorded
update_typeVARCHAR(30)Type of map change
updated_byVARCHAR(80)Source or analyst responsible for the update
Tablesmap_segmentssegment_updates
Interviewer

Your question is Top Updated Map Segments Query. Start with the requirements and the two 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.