当前位置: 数据库>sqlserver
一个SQL语句获得某人参与的帖子及在该帖得分总和
来源: 互联网 发布时间:2014-09-05
本文导语: select a.*,b.SumPoint from Expert_Topic_Index a,( select TopicID, Sum(Point) as SumPoint from expert_reply_index where PostUserName = 'ghj1976' Group by TopicID Having Sum(Point) > 0 ) as b where a.TopicID = b.TopicID 这里其实就是把一个查询的结果放到新的...