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
Managing Databases Experience
00:00
5 left

Managing Databases Experience

MediumSQL · PostgreSQL

Problem

Share your experience managing databases for data science work.

Demonstrate your approach by querying the supplied metadata for datasets and model runs. Return the latest completed run for every dataset, including datasets without a completed run.

Output

  1. One row per dataset with dataset_name, run_id, model_name, started_at, and rmse.
  2. Include missing run or metric values as NULL.
  3. Sort alphabetically by dataset_name.

Schema

datasets
ColumnTypeDescription
dataset_idPKINTUnique dataset identifier
dataset_nameVARCHAR(100)Dataset display name
domainVARCHAR(50)Business or analytical domain
model_runs
ColumnTypeDescription
run_idPKINTUnique model run identifier
dataset_idINTDataset used by the run
model_nameVARCHAR(100)Model or experiment name
statusVARCHAR(20)Run lifecycle status
started_atTIMESTAMPRun start timestamp
run_metrics
ColumnTypeDescription
metric_idPKINTUnique metric record identifier
run_idINTModel run associated with the metric
metric_nameVARCHAR(30)Metric name
metric_valueDECIMAL(10,4)Measured metric value
Tablesdatasetsmodel_runsrun_metrics
Interviewer

Your question is Managing Databases Experience. 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.