this max should have been an int

This commit is contained in:
Pablo Martin 2024-06-17 11:27:44 +02:00
parent f900ca794f
commit a8892e7d5d

View file

@ -64,7 +64,7 @@ with
), ),
-- CTEs for projecting backward -- CTEs for projecting backward
oldest_xe_date_per_curr_pair as ( oldest_xe_date_per_curr_pair as (
select from_currency, to_currency, max(rate_date_utc) as oldest_date_utc select from_currency, to_currency, min(rate_date_utc) as oldest_date_utc
from stg_xedotcom__exchange_rates from stg_xedotcom__exchange_rates
group by 1, 2 group by 1, 2
), ),