Mark is correct, you would want to use the Nodup here, as I re-read the the post. I originally assumed (looking at the example data set) that the Number was the same for each individual Name; however, it sounds like that may not be the case. Instead of eliminating duplicate Names with the Nodupkey, the Nodup will eliminate duplicate rows that have the same values in both the Name and Number field. The same with select distinct *, instead of select distinct Name in the SQL procedure. In case there are multiple Numbers for individual Names, otherwise my code will give you the first Number of each Name, and not all possible combinations of Names and Numbers. Hope that makes sense!
... View more