Skip to content

Instantly share code, notes, and snippets.

@thirdknife
Created July 2, 2015 06:30
Show Gist options
  • Select an option

  • Save thirdknife/94fd37ae47fd281d77b6 to your computer and use it in GitHub Desktop.

Select an option

Save thirdknife/94fd37ae47fd281d77b6 to your computer and use it in GitHub Desktop.
Window Duplicates
SELECT ogenes.window, ogenes.genes, ogenes.location FROM genes as ogenes
INNER JOIN (SELECT window FROM genes
GROUP BY window HAVING count(id) > 1) genes ON ogenes.window = genes.window order by ogenes.window asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment