SQL: find advertisers who submitted in both weeks.
Asked in the Tech round stage. Only the question heading is visible; the rest is points-walled.
Write a SQL query using the provided tables. Treat week 1 as 2024-05-06 through 2024-05-12 and week 2 as 2024-05-13 through 2024-05-19.
advertiser_id, advertiser_name, week_1_submissions, and week_2_submissions.advertiser_id ascending.| Column | Type | Description |
|---|---|---|
| advertiser_idPK | INT | Unique advertiser identifier |
| advertiser_name | VARCHAR(150) | Advertiser display name |
| Column | Type | Description |
|---|---|---|
| submission_idPK | INT | Unique submission identifier |
| advertiser_id | INT | Advertiser associated with the submission |
| submitted_at | TIMESTAMP | Timestamp when the submission was made |