This will give you different methods to find the orders which have more than 5 different Products. We all know old-style methods, but you could use new analytical partition clause to eliminate the join with original table. It seems pretty simple, but is it performing better than existing methods. It will also provide the cost of other methods.