How to select similar sets in SQL

后端 未结 8 1745
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 15:38

I have the following tables:

Order
----
ID (pk)

OrderItem
----
OrderID (fk -> Order.ID)
ItemID (fk -> Item.ID)
Quantity

Item
----
ID (pk)
         


        
8条回答
  •  难免孤独
    2020-12-13 15:45

    This is one kind of data mining problem. So instead of using sql you can use Apriori algorithm with 85% support. The implementation of this algorithm is freely available in many tools.

提交回复
热议问题