Compare joined rows with distinct orders
Run the reporting join for order 17 in a read-only session. Compare COUNT(*) with COUNT(DISTINCT order_id) and inspect the matching line-item IDs.
Three line items can produce three joined rows for one order. Aggregate at the order level before reporting an order count or summing an order-level total.
What to inspect in the source
- Record identity
- Schema, table and query timestamp
- Reader access
- Confirm the database role can read every relation used by the query.
- Interpretation limit
- A join can drop records with no matching dimension row.
Workflow check
Count distinct order keys before and after joining line items, then reconcile a sample order.
Access and availability
Confirm the available connection method, edition and read permissions for MySQL analytics with the pilot team.
