上个帖子自己写错了语句,再发一个贴问问高手这个SQL语句问题,算是道歉了:)

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

写错了  
   
  select  
   
   
  sum(a.aa)   as   aa,    
   
  sum(b.aa)   as   bb  
   
   
  from   table_1   a,   table_1   b  
   
  where   a.gsmc=   3   and   year(a.mdate)=2005   and   month(a.mdate)=2    
  and         b.gsmc=3     and   year(b.mdate)=2005   and   month(b.mdate)<=2  
   
  这个语句查询得到的值有问题。。  
   
 

.

· 网友精彩回答:

处理 SSI 文件时出错
© 2006-2008 All Rights Reserved