AnalystPath

Hackathon Favorite With the Most Weighted Picks

SQLMediumMid level~15 min

Problem

Table: `nominations`

| Column Name | Type |
|---|---|
| judge | varchar |
| project | varchar |

Each row records that a judge nominated a project as a favorite. A judge gets one total vote: if a judge nominates several projects, that vote is split equally among them (nominating 2 projects gives each 0.5). A `project` of NULL means the judge abstained and contributes nothing.

Find the project(s) with the highest total weighted score. Return `project`, ordered by `project`.

Tables

Example rows — the live problem includes the full dataset.

nominations
judgeproject
DanaAurora
DanaBeacon
EliAurora

Expected output

Your answer should return 1 row with the columns project.

Starter code (SQL)

SELECT *
FROM nominations;

Solve this SQL question free

Write SQL and run it instantly in your browser — even on your phone. No signup needed to try.

Solution & explanation

Create a free account to unlock the optimal solution, a step-by-step explanation, and the hidden test cases that grade your answer.

Sign up free to unlock

Related SQL questions