St
Size: a a a
ДМ
ДМ
ДМ
ДМ
select customer_id, create_date, (select count(distinct loan_id)
from loans.finstat a
where customer_id = a.customer_id
and create_date < a.create_date
group by loan_id)
from loans.finstat f
group by customer_id,loan_id , create_date
ДМ
ДМ
ДМ