copbird-sna/query_tweet_count.sql

6 lines
144 B
MySQL
Raw Normal View History

2023-03-25 18:22:42 +00:00
use copbird;
SELECT count(tweet.id) as "tweet_count", `user`.handle
FROM tweet
JOIN `user` on tweet.user_id = `user`.id
GROUP BY `user`.name ;