日期 - 金额 - 日期名称
2017-09-05 364100.00星期二 2017-09-11 189700.00星期一
周二的价值应为364100 + 189700
答案 0 :(得分:1)
SELECT *
FROM origination_table
WHERE WEEKDAY(origination_date) <= WEEKDAY(NOW())
AND WEEKDAY(origination_date) > WEEKDAY(NOW())-2
AND .... others like origination_date>=DATE_SUB(NOW(),INTERVAL 7 day)