Skip to content

Instantly share code, notes, and snippets.

@keeran
Created August 14, 2010 10:59
Show Gist options
  • Select an option

  • Save keeran/524207 to your computer and use it in GitHub Desktop.

Select an option

Save keeran/524207 to your computer and use it in GitHub Desktop.
SELECT hour(created_at) as hour, count(hour(created_at)) as total FROM audit_logs group by hour(created_at) order by total DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment