connor_lough
08/11/2022, 8:48 PMpat_nadolny
08/11/2022, 8:55 PMconnor_lough
08/11/2022, 8:58 PMpat_nadolny
08/11/2022, 9:00 PMconnor_lough
08/11/2022, 9:05 PMpat_nadolny
08/11/2022, 9:29 PMconnor_lough
08/11/2022, 9:35 PMconnor_lough
08/11/2022, 9:35 PMpat_nadolny
08/11/2022, 9:46 PMaaronsteers
08/12/2022, 6:00 PMaaronsteers
08/12/2022, 6:06 PMROW_RUMBER() OVER (
PARTITION BY mytable.unique_id
ORDER BY _sdc_batched_at DESC
) AS recency_rank # filter by '== 1' to remove all dupes
pat_nadolny
08/12/2022, 7:11 PMSYNC_ID
environment variable based on the current timestamp then every record in that batch gets the same static sync ID vs sdc_batched_at that might be close but not the same across each record in the same sync.