我通过咨询才知道的sql语句写法

上一篇 / 下一篇  2008-01-30 16:57:28

1.取用户个数,并且条件是balance相加>1000的

select count(*),region from (select region, entityid,sum(balance) from am_score_balance where scorecycle='200801'ITPUB个人空间 yO5C,cN
group by region,entityidITPUB个人空间^O _w4By
having
+l+@-zI m%l%g*[/nF0sum(balance)>1000)
B$B;F1y5l`!ar0group by region;

 

 


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-10-13  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 267
  • 日志数: 14
  • 建立时间: 2008-01-16
  • 更新时间: 2008-05-21

RSS订阅

Open Toolbar