Skip to content
Advertisement

SQL customer who never order product p1 and p2 together

I do have two table. I want to find customers who never order product p1 and p2 together(there are million rows in this table)

Advertisement

Answer

If I understand you correctly, with your very limited information, here is the solution. I broke it up to pieces, for you to understand it better

Advertisement