I am having a brain fade and am trying to figure out how to get the minimum 
distance by zipcode.

I have a table with the following values

dealernum      zipcode     distance
---------      --------    --------
CF001           93535        1.5
CF099           93535        1.8
CF011           93535        4.6
CF001           94000        2.5
CF099           94000        87.2
CF011           94000        17.9


What I need to do is store the dealernum and zipcode into a results table.

dealernum     zipcode
---------     -------
CF001          93535
CF001          94000


I have played with min select function but cannot figure out the grouping to 
store both the dealernum and zipcode.


TIA


Dan Goldberg

Reply via email to