Incomplete Assembly Tasks
Tesla 👶 Easy SQL
Beginner Mode

Objective

Write a SQL query to identify parts that have started assembly but do not have a finish date.

Table Schema:

  • parts_assembly
Column Type Description
part VARCHAR Name of the part being assembled
finish_date DATE Date when the assembly was completed (NULL if not finished)
assembly_step INTEGER Step number in the assembly process

Task Requirements:

  • Identify parts that have started assembly but have no finish date (finish_date is NULL)
  • Return the part name and assembly step for unfinished parts
  • No specific sorting required

Output columns: assembly_step, part

Examples

Example 1:

Input:

parts_assembly
assembly_stepfinish_datepart
12024-01-15Engine Block
2nullEngine Block
12024-02-20Transmission
1nullBrake Pad
2nullBrake Pad

Output:
assembly_steppart
2Engine Block
1Brake Pad
2Brake Pad
Quick Solution

Code Environment

Sign in or try as guest to run your code.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →