MySQL Forums
Forum List  »  PHP

logical problem
Posted by: Nathan Hazout
Date: August 04, 2005 12:50PM

Hi,

I have a complex logical problem.
To make it simple, let's say I have a table with 2 columns.
'txnid' (ie. Transaction ID) and 'prodid' (Product ID).
None of them are unique since or order can have several products and one product can be in several orders.

My goal is to generate the Top 10 combinations of products.
For example, products 10023, 10234 and 1234 are most often bought together.

I think I can forget trying every combinations are compares them since there are more than 40 000 transactions and almost 8 000 products.

Anyone?

Options: ReplyQuote


Subject
Written By
Posted
logical problem
August 04, 2005 12:50PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.