Describe how you would approach a timed coding assessment that includes multiple SQL questions and scenario-based R questions.
For the SQL portion, produce an assessment summary that helps an interviewer evaluate participation, response time, and question-level performance across SQL and R sections.
Output
- One row per question in assessment
101, including questions with no responses.
- Return
question_id, section, question_type, response_count, avg_time_seconds, latest_status, response_rate_pct, type_rank, and prior_avg_time_seconds.
- Order by
question_id ascending. Rank questions within each question type by response rate descending, then average response time descending.
Output details
- Use the most recently submitted response per question for
latest_status, breaking timestamp ties by greatest response_id; return NULL when absent.
- Round
avg_time_seconds and response_rate_pct to one decimal place, returning NULL average time when no responses exist.
- Rank with competition ranking, treating tied response rates and average times as equal and placing
NULL average times last.
- Order prior averages by
type_rank ascending then question_id ascending, returning NULL for the first question in each type.