Detecting inflated sales after a merge

A retailer records each completed sale exactly once in Sales. Campaign placements lists the channels in which each product is advertised; it does not identify which campaign generated a sale.


Sales


Sale ID

Product ID

Sales amount (USD)

T81

J4

80

T82

J4

120

T83

K2

60


Campaign placements


Product ID

Channel

J4

Email

J4

App

J4

Store

K2

Email

K2

App


An analyst performs an inner join using Product ID alone. Every sales record is paired with every campaign-placement record having the same Product ID. No rows are removed afterward.


Find the number of merged rows, the sum of Sales amount across those merged rows, and the amount by which that sum exceeds the original Sales total. Give the row count as an exact integer and both monetary answers in USD to the nearest whole dollar.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Merging Datasets Questions: