Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Excel and Programming Assessment
00:00
5 left

Excel and Programming Assessment

HardSQL · PostgreSQL

Problem

Describe how you would approach a multi-step Excel and programming assessment to produce an accurate result.

Use the provided assessment tables to produce an auditable SQL result. Treat a submission as accurate only when it is submitted, contains both required steps, has no missing step results, has no failed validation checks, and has steps completed in chronological order.

Output

  1. One row per submission, including draft and submitted submissions.
  2. Return candidate_id, completed_steps, failed_checks, missing_values, out_of_order_steps, accuracy_status, and duration_minutes.
  3. Sort by submission_id ascending.

Schema

assessment_submissions
ColumnTypeDescription
submission_idPKINTUnique assessment submission identifier
candidate_idVARCHAR(30)Candidate identifier
submitted_atTIMESTAMPTime the assessment was submitted
statusVARCHAR(20)Submission state
assessment_steps
ColumnTypeDescription
step_idPKINTUnique step result identifier
submission_idINTRelated assessment submission
step_numberINTSequential step number
step_nameVARCHAR(50)Name of the assessment step
result_valueDECIMAL(10,2)Recorded step result
expected_valueDECIMAL(10,2)Reference result for comparison
completed_atTIMESTAMPTime the step was completed
validation_checks
ColumnTypeDescription
check_idPKINTUnique validation check identifier
submission_idINTRelated assessment submission
step_idINTRelated step, when applicable
check_typeVARCHAR(40)Validation category
check_statusVARCHAR(20)Validation outcome
checked_atTIMESTAMPTime of validation
Tablesassessment_submissionsassessment_stepsvalidation_checks
Interviewer

Your question is Excel and Programming Assessment. 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
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.