Well, I think it is hard. Maybe you'll find it easy.
I have two files: BUYINGORDERS, PRODUCTMASTERLIST
BUYINGORDERS (ProductID,ProductDescription) goes like this:
1;fresh coke bottle 1 lt
2;cheese CheesyBrand yellow 2 kg
3;little newborn puppies 10 kg
PRODUCTMASTERLIST (ProductDescription,Price) goes like this:
CheesyBrand yellow cheap cheese 2 kg;3.40
bottle of very fresh coke of 1 lt;2.90
I need to find the descriptions in BUYINGORDERS which are present in PRODUCTMASTERLIST. Thing is, as you can see, that lines are not strictly the same: the condition for matching is that every word in an entry in BUYINGORDERS' ProductDescription should be IN ANY ORDER in PRODUCTMASTERLIST's ProductDescription. The entries in PRODUCTMASTERLIST may even have more words.
So, despite being slightly different, line 1 from BUYINGORDERS matches line 2 from PRODUCTMASTERLIST, since words 'fresh','coke', 'bottle', '1' and 'lt' are among 'bottle of very fresh coke of 1 lt'.
Now, I am not asking you to do my homework (I wouldn't complain, though : ) , of course, but I would very much appreciate at the very least a possible approach on the matter.