Skip to content

Instantly share code, notes, and snippets.

@sorenmacbeth
Forked from ealdent/gist:74722
Created May 27, 2010 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sorenmacbeth/416502 to your computer and use it in GitHub Desktop.
Save sorenmacbeth/416502 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