Skip to content

Instantly share code, notes, and snippets.

@vedicveko
Created February 7, 2012 17:21
Show Gist options
  • Select an option

  • Save vedicveko/1760817 to your computer and use it in GitHub Desktop.

Select an option

Save vedicveko/1760817 to your computer and use it in GitHub Desktop.
Order by Top Ten
SELECT patient_seq, study_date, COUNT(seq) as count
FROM images
GROUP by patient_seq
ORDER by count DESC LIMIT 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment