I did what you had told me and it worked. Thanks for the tip.
However I forgot to mention one thing which I realized once I used the Select Distinct. My query had one more column Color
so now my actual query looks like this
ID Number Products color
122 Cups White
133 Pencils...