关于视图 select a.year,a.month,a.money, total=(select sum(money) from table where (year*12+month)<=(a.year*12+a.month) from table a 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sorrry,i forgot a )select a.year,a.month,a.money, total=(select sum(money) from table where (year*12+month)<=(a.year*12+a.month)) from table a 会用pivot和unpivot,但是不能理解,有没有数学分析的模型? order by 按正序排序时,如何把NULL值排到后面去啊? 请问一个SQL的问题 急问!字符串列相加怎么实现! 关于链接服务器的查询问题 请问个查询问题,高手请进! BCB里面由程序传值给存储过程,操作结果显示在DBGrid里面? 存储过程怎么运行啊? 如何寫這個存儲過程 Xl_主类 ( 子类流水号 int primary key identity(1,1) ,名称 nvarchar( 谁能发表在十几条数据上建立触发器好吗? 如何 删除一个数据库里的 外键 主键 和约束 在系统表里如何递归查找他们的依赖关系?
select a.year,a.month,a.money, total=(select sum(money) from table where (year*12+month)<=(a.year*12+a.month)) from table a