Duplicate rows or doubled totals
Most doubled totals come from a missing filter, not duplicate data. Check these first.
| Table type | What looks like a duplicate | Filter to apply |
|---|---|---|
| Vendor Retail Analytics | The same ASIN and date appears once per distributor view, program and period | Filter distributor_view, program and period |
| Vendor Retail Analytics | Amazon Retail plus Amazon Business plus Amazon Fresh | Retail already includes Business and Fresh. Use Retail only |
| Seller transactions | Deferred transactions appear when ordered and again when paid | deferred_transaction_id IS NULL |
| Seller sales and traffic by SKU | Traffic repeats on every SKU of an ASIN | Use the child ASIN table for traffic |
| Defect report (chargebacks) | Chargeback and record rows for the same event | Apply the rules in Chargebacks and the defect report |
| Forecasts | Several forecast snapshots for the same week | Use the latest snapshot date |
| Any table joined to a catalog | A product with several SKUs or catalog rows multiplies when joined | Aggregate the catalog first, or use MAX() on catalog attributes |
Check for real duplicates
Count rows by the table's key columns:
SELECT <key columns>, COUNT(*) FROM public.<table> GROUP BY <key columns> HAVING COUNT(*) > 1;
If rows match on every key column and every value, contact support with the table name, the query and two or three example rows.