Skip to content

Instantly share code, notes, and snippets.

@atopal
Created April 17, 2013 09:59
Show Gist options
  • Select an option

  • Save atopal/5403158 to your computer and use it in GitHub Desktop.

Select an option

Save atopal/5403158 to your computer and use it in GitHub Desktop.
most active AoA users
SELECT `customercare_reply`.`twitter_username`, `auth_user`.`username` as 'SUMO_username', count(*) as 'tweets'
FROM `customercare_reply`
LEFT JOIN `auth_user` on `auth_user`.`id`=`customercare_reply`.`user_id`
WHERE `customercare_reply`.`created` >= '2013-04-02 0'
GROUP BY `customercare_reply`.`twitter_username` ORDER BY COUNT(*) DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment