# Hall of Champions

THE GREAT DUCK MIGRATION! · challenge 6 · hard

> Professor Shellbert unveils the ancient Hall of Champions scroll with golden seals. "Every migration needs specialist elite guards! Find all ducks who hold the all-time highest score in any sport - these record holders have unmatched skills. They'll protect our flock from sky predators, navigate through storms, and lead specialized formations. Sum their identification codes for the registry!"

## Task

Return the sum of SSNs for all ducks who have the all-time highest score in at least one sport (count each duck only once, must be top scorer in their respective sport). You will be working with the `duck_athletes` and `performance_records` tables to assemble the elite guard of record holders.

## Tables

### `performance_records` (800 rows)

| column | type |
| --- | --- |
| duck_id | BIGINT |
| sport | VARCHAR |
| score | DOUBLE |
| competition_date | DATE |

### `duck_athletes` (50 rows)

| column | type |
| --- | --- |
| id | BIGINT |
| ssn | BIGINT |
| name | VARCHAR |
| age | BIGINT |
| hometown | VARCHAR |

## Data

The tables live in a DuckDB database: https://dbquacks.com/data/databases/athletic_champions.duckdb

To query it outside the browser, attach it read-only:

```sql
ATTACH 'https://dbquacks.com/data/databases/athletic_champions.duckdb' AS db (READ_ONLY);
USE db;
```

Play it in the browser: https://dbquacks.com/challenges/athletic/6

## Answer

The expected answer is not published. Submit on the page to have it checked.
