My address book table has many duplicate addresses for each client. Note in the screenshot below that I have many duplicate zip codes for the same client with ID 12.
Ineedtoremoveduplicateaddresseswherepostcode
andparent_id
aregreaterthan1andkeepanaddressinthesamecondition,ieyouhavetomaintaina14402-408,14403-707,60150-170,and81050-130.
Inasimplewayyouwouldneedthefollowing:
DELETE*FROMcatalog_addressWHEREparent_idANDpostcode>1
Icouldnotfindsimilarcase,Isawenoughissuesofremovingduplicatesasbelow: How to delete all duplicates, except one? My seeing does not solve my case.
What would the MYSQL statement look like in this case?
Thank you!