From 454c5f8d8a88aa34d42a60e56b8b0680bbf2dec5 Mon Sep 17 00:00:00 2001 From: Jack Forgash Date: Wed, 19 Jul 2023 16:13:53 -0600 Subject: [PATCH] qualify --- models/bronze/core/bronze__transactions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/bronze/core/bronze__transactions.sql b/models/bronze/core/bronze__transactions.sql index af168c82..19adafa5 100644 --- a/models/bronze/core/bronze__transactions.sql +++ b/models/bronze/core/bronze__transactions.sql @@ -40,7 +40,7 @@ SELECT * FROM FINAL qualify ROW_NUMBER() over ( - PARTITION BY tx_id + PARTITION BY tx_id, block_number ORDER BY _inserted_timestamp DESC ) = 1