-
-
Save sorenmacbeth/416502 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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