A creative library reports which stock assets have never been downloaded, so unused ones can be retired. The download collector cannot always attribute a download to an asset, and writes a null asset_id when it fails.
asset_id, asset_name for every asset with no download, ordered by asset_idasset_id in downloads attributes to no asset, and must not suppress the resultassets| asset_id | asset_name | library_id | uploaded_at |
|---|---|---|---|
| 1 | sunset-01 | 7 | 2026-01-02 10:00:00 |
| 2 | mountain-02 | 7 | 2026-01-03 10:00:00 |
downloads| asset_id | download_id | downloaded_at |
|---|---|---|
| 1 | 100 | 2026-01-04 09:00:00 |
| asset_id | asset_name |
|---|---|
| 2 | mountain-02 |
assets| asset_id | asset_name | library_id | uploaded_at |
|---|---|---|---|
| 10 | logo-a | 1 | 2026-02-01 08:00:00 |
| 11 | logo-b | 1 | 2026-02-01 08:05:00 |
| 12 | logo-c | 2 | 2026-02-02 08:00:00 |
downloads| asset_id | download_id | downloaded_at |
|---|---|---|
| 10 | 1 | 2026-02-03 09:00:00 |
| 10 | 2 | 2026-02-04 09:00:00 |
| 12 | 3 | 2026-02-05 09:00:00 |
| asset_id | asset_name |
|---|---|
| 11 | logo-b |
Community-reported interview topic. Not an official company question and no affiliation is implied.
Run against the public tests, or submit to score against all of them.