I have a zipcode table that has duplicate rows of data for multiple zipcodes.
Example:
select indx,zipcode,city,[state]
from uszips
where zipcode = '91789'
indx zipcode city state
76725 91789 WALNUT CA
70557 91789 WALNUT CA
70558 91789 WALNUT CA
70559 91789 WALNUT CA
I'd like to remove the duplicates for all rows for any zipcode. There are 76k rows so manually looking dosent seem like a good idea. The indx column is a self incrementing integer and is unique per row.
Thanks
Example:
select indx,zipcode,city,[state]
from uszips
where zipcode = '91789'
indx zipcode city state
76725 91789 WALNUT CA
70557 91789 WALNUT CA
70558 91789 WALNUT CA
70559 91789 WALNUT CA
I'd like to remove the duplicates for all rows for any zipcode. There are 76k rows so manually looking dosent seem like a good idea. The indx column is a self incrementing integer and is unique per row.
Thanks