From 6be686dc65dcebd38926e72941d4a7e6b134dff9 Mon Sep 17 00:00:00 2001 From: Son Do Date: Wed, 27 Nov 2024 16:14:10 -0800 Subject: [PATCH] Fix Ref Date Spine --- models/staging/ref_finance/core/ez_ref_finance_metrics.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/staging/ref_finance/core/ez_ref_finance_metrics.sql b/models/staging/ref_finance/core/ez_ref_finance_metrics.sql index aefe343e..09004690 100644 --- a/models/staging/ref_finance/core/ez_ref_finance_metrics.sql +++ b/models/staging/ref_finance/core/ez_ref_finance_metrics.sql @@ -42,7 +42,7 @@ select p.token_turnover_circulating, p.token_turnover_fdv, p.token_volume -from fees_revs_tvl f -left join price p on f.date = p.date -left join dau_txns_volume d on d.date = f.date +from dau_txns_volume d +left join price p on d.date = p.date +left join fees_revs_tvl f on d.date = f.date where d.date < to_date(sysdate())