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
Data Modeling for Product Features
00:00
5 left

Data Modeling for Product Features

MediumSQL · PostgreSQL

Problem

How do you approach data modeling for new product features?

Use the provided feature, status history, and project relationship data to produce a concise feature-level view. Include features even when they have no status history or project assignments.

Output

  1. One row per feature with feature_id, feature_name, current_status, project_count, and lifecycle_stage.
  2. Order by feature_id ascending.

Schema

product_features
ColumnTypeDescription
feature_idPKINTUnique product feature identifier
feature_nameVARCHAR(150)Product feature name
owner_teamVARCHAR(100)Team responsible for the feature
created_atDATEDate the feature was created
feature_status_history
ColumnTypeDescription
status_history_idPKINTUnique status history record identifier
feature_idINTReferenced product feature
statusVARCHAR(30)Recorded feature status
status_dateDATEDate the status became effective
feature_projects
ColumnTypeDescription
assignment_idPKINTUnique feature-project assignment
feature_idINTReferenced product feature
project_nameVARCHAR(150)Project using or implementing the feature
Tablesproduct_featuresfeature_status_historyfeature_projects
Interviewer

Your question is Data Modeling for Product Features. 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.