摘要:
--Change为自定义较上期的变化值select NoteID,code,UpdateTime,Balance ,Change=Balance- ( --根据主查询t1得出的代码和时间作为条件获得小于最大日期的上期max(UpdateTime)日期的额度Balance值 select Balance from SMS_FillMonenyNote where code=t1.code and UpdateTime=(select max(UpdateTime) from SMS_FillMonenyNote where code=t1.code and UpdateTim... 阅读全文