8.5 Intersection, union and difference in the case of row-based data - multiple sets

 

There is a file top10Sales.xlsx, which lists the sales data of the top 10 products by sales in the first couple of months of the year (the number of months will increase over time):

imagepng

imagepng

imagepng

imagepng

Find out the products that make the top 10 in every month of these months:

A
1 =file(“top10Sales.xlsx”).xlsopen()
2 =A1.(A1.xlsimport@t(;stname)).merge@oi(ProductName)

imagepng

Find out the products that make the top 10 once or more:

A
1 =file(“top10Sales.xlsx”).xlsopen()
2 =A1.(A1.xlsimport@t(;stname)).merge@ou(ProductName)

imagepng

Find out the products that make the top 10 in January but fail to make the top 10 in any of other months:

A
1 =file(“top10Sales.xlsx”).xlsopen()
2 =A1.(A1.xlsimport@t(;stname)).merge@od(ProductName)

imagepng