Hello,
I need to come up with a query to find our products with similar materials, and i'm hitting a wall. Here is an example what my initial table looks like:
ID PartNo Material 1 SKU1 A 2 SKU1 B 3 SKU1 C 4 SKU2 A 5 SKU2 C 6 SKU3 B 7 SKU3 C 8 SKU4 A 9 SKU4 B 10 SKU4 C
What i need to find is how many parts are similar to each other. So i need to know that sku1 and sku4 both have the same materials, but also that sku1 and sku2 share 2 materials, etc. So my results should look something like:
PartNo SimilarTo CountOfMaterialsShared MaterialsShared sku1 sku4 3 A,B,C sku1 sku2 2 A,C sku1 sku3 2 B,C sku2 sku1 2 B,C sku2 sku3 1 C
What i can think of is that i need to loop over each sku and find all similar skus, but i can't think of how to do this in a query, but all of my data are in tables (access 2016) so i'm stuck. I have been pointed to a cool function to concatenate data (http://allenbrowne.com/func-concat.html), but i'm still not sure how to get columns 2 and 3 above. Anyone have any ideas? Thank you!!