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
- One row per submission, including draft and submitted submissions.
- Return
candidate_id, completed_steps, failed_checks, missing_values, out_of_order_steps, accuracy_status, and duration_minutes.
- Sort by
submission_id ascending.
Output details
- Count a validation failure only when
check_status equals FAILED, and report failed_checks as zero when none exist.
- Treat a missing step result as
result_value being NULL.
- Count a step as out of order only when its completion timestamp is strictly earlier than the preceding step's timestamp; equal timestamps are in order.
- Round
duration_minutes to two decimal places and report zero as 0.00 when completion timestamps are unavailable.