Skip to content

Instantly share code, notes, and snippets.

@cv
Created November 20, 2008 11:38
Show Gist options
  • Save cv/27018 to your computer and use it in GitHub Desktop.
Save cv/27018 to your computer and use it in GitHub Desktop.
Member.find(:first, :select => 'sum(performances.overall_positive_rating) as opr', :joins => :performances, :order => 'opr DESC').opr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment