Skip to content

Instantly share code, notes, and snippets.

@ealdent
Created March 6, 2009 02:56
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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