Skip to content

Instantly share code, notes, and snippets.

@nicdubon-ctx
nicdubon-ctx / gist:380c289260be8eddbd7aa63b276e3558
Last active September 22, 2025 15:20
US Fraud Recalls - General Velocity Distribution
--------- US RECALL VIEW - TRANSACTION RECENCY (what # transaction was the recall)
WITH fraud_funded_trips AS (
SELECT
d.triggered_trip_id AS trip_id
FROM public.lead_bank_funds_requests lbfr
INNER JOIN public.deposits d ON lbfr.deposit_id = d.id
WHERE lbfr.fraud = true
AND lbfr.institution = 'lead_bank'
),