Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写了一条 sql 语句,das 返回作者、负面评论计数和正面评论计数。
示例输出:
迈克 3 4 丹尼尔 5 6 迈克 1 3
而且我想汇总 Mike,这样你就有了 Mike 4 7 的结果。我怎样才能将其作为 sql 查询来执行?
谢谢
select Author , sum(NegativeComments) as SumNegative , sum(PositiveComments) as SumPositive from YourTable group by Author