Skip to content

Instantly share code, notes, and snippets.

@arialdomartini
Created June 3, 2013 15:26
Show Gist options
  • Save arialdomartini/5698981 to your computer and use it in GitHub Desktop.
Save arialdomartini/5698981 to your computer and use it in GitHub Desktop.
select
norm,
max(den),
score
from
origin
inner join
(select
norm as a,
MAX(score) as m
from
origin
group BY
norm) as m
ON origin.norm = m.a and origin.score = m.m
group by
norm, score
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment