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
ExperiencesCoaching
New
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
Get started
SQL Proficiency Level
00:00
5 left

SQL Proficiency Level

MediumSQL · PostgreSQL

Problem

What is your SQL proficiency level?

Demonstrate your level by querying the provided tables. Return one row for every technician, including technicians without qualifying completed work orders. Include only work orders completed during 2025.

Output

  1. Columns: technician_name, completed_work_orders, average_duration_hours, proficiency_band
  2. Assign High for at least 3 completed work orders, Standard for 1 or 2, and No completed work for 0.
  3. Order by completed work orders descending, average duration descending, then technician name ascending.

Output details

  • Treat only rows whose status is exactly Completed as completed work orders.
  • Include completion dates from DATE '2025-01-01' inclusively through dates before DATE '2026-01-01'.
  • Round average_duration_hours to two decimal places and report 0.00 when no qualifying work orders exist.

Schema

technicians
ColumnTypeDescription
technician_idPKINTUnique technician identifier
technician_nameVARCHAR(100)Technician's full name
work_orders
ColumnTypeDescription
work_order_idPKINTUnique work order identifier
technician_idINTAssigned technician identifier
statusVARCHAR(30)Current work order status
completion_dateDATEDate the work order was completed
duration_hoursNUMERIC(6,2)Hours spent completing the work order
Tablestechnicianswork_orders
Interviewer

Whenever you're ready, walk me through your approach or go straight to the code. The requirements and the two tables are in the Question tab.

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.