asp去掉有负数的重复数据
表字段idusernamepoint1a12b53c84a105b56a-17b20要显示结果b30c8去掉有负数的用户a我用户的错误语句是rs0.open"select...
表字段 id username point
1 a 1
2 b 5
3 c 8
4 a 10
5 b 5
6 a -1
7 b 20
要显示结果
b 30
c 8
去掉有负数的用户a
我用户的错误语句是
rs0.open "select username, sum(point)as point from tab where username not in(select point<0 group by username) and point>0 group by username",conn,1,1 展开
1 a 1
2 b 5
3 c 8
4 a 10
5 b 5
6 a -1
7 b 20
要显示结果
b 30
c 8
去掉有负数的用户a
我用户的错误语句是
rs0.open "select username, sum(point)as point from tab where username not in(select point<0 group by username) and point>0 group by username",conn,1,1 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询