Skip to content

Commit

Permalink
Pick latest record (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 authored Oct 16, 2024
1 parent 08e583f commit 2ff6c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/staging/stg_history_assets.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ with
select
*
, row_number() over (
partition by asset_id order by batch_run_date asc
partition by asset_id order by batch_run_date desc
) as dedup_oldest_asset
from {{ source('crypto_stellar', 'history_assets_staging') }}
)
Expand Down

0 comments on commit 2ff6c58

Please sign in to comment.