Your question is SQL for 7-Day Test Start. Start with the requirements and the three tables on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Turing's Product Growth team wants to identify candidates who completed their Turing profile but did not start the technical test within seven days of completion. Write a PostgreSQL query using the earliest profile completion per user.
| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Candidate identifier |
| full_name | VARCHAR(100) | Candidate full name |
| VARCHAR(255) | Candidate email address | |
| joined_at | TIMESTAMP | Account creation timestamp |
| Column | Type | Description |
|---|---|---|
| completion_idPK | INT | Profile completion event identifier |
| user_id | INT | Candidate associated with the completion |
| completed_at | TIMESTAMP | Profile completion timestamp |
| Column | Type | Description |
|---|---|---|
| test_start_idPK | INT | Technical test start event identifier |
| user_id | INT | Candidate who started the test |
| started_at | TIMESTAMP | Technical test start timestamp |
| test_name | VARCHAR(100) | Name of the Turing technical test |