I have a table with these three attributes, say:
ItemID varchar(20),
RetailerID int,
ItemMfd_Date DATE
Now I want all those records such that if there are multiple retailers for a given Item + ItemMfd_Date we need to pick the row that is with minimum RetailerID.
Suppose we have two attribute additional, and we want one more attribute as result but condition is those records must have attr2 = 1