例えば:
Data1:
customer_id product sales
1 1 mixer 3
2 2 mixer 3
3 3 mixer 3
4 4 toaster 3
5 5 toaster 2
6 6 lcd tv 2
7 7 lcd tv 1
8 8 lcd tv 1
Data2:
customer_id No_of_products_ordered response
1 2 two positive
2 4 two positive
3 6 two negative
4 8 three positive
5 10 three positive
6 12 five negative
7 14 five negative
出力は次のようになります。
customer_id product sales
1 1 mixer 3
3 3 mixer 3
5 5 toaster 2
7 7 lcd tv 1
つまり、データ 2 にもあるデータ 1 から ID を削除します。