【发布时间】:2017-04-21 02:36:29
【问题描述】:
我有两个 SQL 查询:
SELECT subreddit, count(subreddit) as count
FROM [fh-bigquery:reddit_comments.all]
where author="***********" GROUP by subreddit ORDER BY count DESC;
与
SELECT subreddit, count(subreddit) as count
FROM [redditcollaborativefiltering:aggregate_comments.reddit_posts_all]
where author="***********" GROUP by subreddit ORDER BY count DESC;
我希望能够将这两个查询的结果合并为一个具有相同列的结果,但是,计数是彼此相加的。有什么简单的方法可以做到这一点?
【问题讨论】:
标签: mysql google-bigquery