sql里面按照某一列求历史累计最大值rows BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
文章目录1.rowsBETWEENUNBOUNDEDPRECEDINGANDCURRENTROW1.rowsBETWEENUNBOUNDEDPRECEDINGANDCURRENTROW目的:计算vintage的时候采用截止到当前期次的历史最大逾期天数来算坏样本占比CREATETABLEoverdue_repayments(apply_idINT,period_numINT,overdue_days