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
SQL for Dataset Manipulation
00:00
5 left

SQL for Dataset Manipulation

MediumSQL · PostgreSQL

Problem

Describe your experience with SQL and how you would use it to manipulate datasets at YipitData.

Using the provided dataset_records table, demonstrate this by summarizing records collected during January 2025. Include only rows with a non-null dataset name.

Output

  1. One row per dataset, with dataset_name, total_records, and average_daily_records.
  2. Include the total and average of record_count for the period.
  3. Order by total_records descending, then dataset_name ascending.

Schema

dataset_records
ColumnTypeDescription
record_idPKINTUnique record identifier
dataset_nameVARCHAR(100)Name of the tracked dataset
categoryVARCHAR(50)Dataset category
collected_onDATEDate on which records were collected
record_countDECIMAL(12,2)Number of records collected
Tablesdataset_records
Interviewer

Your question is SQL for Dataset Manipulation. 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.