this max should have been an int
This commit is contained in:
parent
f900ca794f
commit
a8892e7d5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue