Skip to content

Instantly share code, notes, and snippets.

@ealdent
Created March 6, 2009 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ealdent/74722 to your computer and use it in GitHub Desktop.
Save ealdent/74722 to your computer and use it in GitHub Desktop.
SELECT 1.0 + SUM((1.0 + #{p} * tunkrank_score) / (1.0 + num_friends)) AS tunkrank_score
FROM twitter_users
INNER JOIN twitter_id_follows ON (twitter_users.twitter_id = twitter_id_follows.follower_twitter_id)
WHERE twitter_id_follows.user_twitter_id = #{twitter_id};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment