例如:
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
也就是说,它从 data1 中删除了那些也在 data 2 中的 id。