Your question is SQL for Channel Sign-Ups and Growth. Start with the requirements and the two 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 needs a weekly view of candidate acquisition performance. Write a PostgreSQL query that reports sign-ups and application conversion by acquisition channel.
A candidate is considered converted when they submit at least one Turing application within seven days after signing up. Include acquisition channels with sign-ups even when no candidate converted.
acquisition_channel.NULL when no prior-week comparison exists.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique Turing candidate identifier |
| signup_at | TIMESTAMP | Timestamp when the candidate created an account |
| acquisition_channel | VARCHAR(50) | Marketing acquisition source |
| Column | Type | Description |
|---|---|---|
| application_idPK | INT | Unique application identifier |
| user_id | INT | Candidate who submitted the application |
| submitted_at | TIMESTAMP | Application submission timestamp |