Instantly share code, notes, and snippets.
Backup of SQL Fiddle code for this StackOverflow answer: http://stackoverflow.com/a/10395492/1349518