Ad
  • Custom User Avatar

    It is not about imagination, it is about logic.
    Kata says 'different type of products', it doesn't say about product count. It is about uniqueness of product.
    I'm tired of such katas with wrong descriptions. So much wasted time, for nothing.

  • Default User Avatar

    It's hard to imagine a situation when one producer (because products should be grouped by a producer) sells different products with exactly the same name :) So DISTINCT is superfluous here I guess.

  • Default User Avatar

    The description requires to count different type of products which will requires to use distinct, but for the result showing that we should not use it.Either you should change the description or change the test case