如何从特定日期获取以前的日期,例如
Select PreviousDates from table where RecvDate(check to get all dates back from RecvDate)
从RecvDate中选择所有以前的日期? 我希望将AmountReceived从当前位置的前一个日期的所有内容相加,当移动到下一行时将总和包括当前位置 希望你明白
Select *,Sum(temp.AmountReceived) OVER() as BalanceTillDate from (select AmountReceived , RecvDate,BillNo from CampusRecovery
where CampusRecovery.BillNo = '000' and CampusRecovery.RecvDate < '2015-05-10'
) as temp