Hi, Need help filtering duplicates from a category fname- catid ( id of category) fname- company_name ( name of company) For catid () find all duplicate company_name Some categories eg. have the same company name 5 times What will be the sql command in phpmyadmin Regards
Hi this is not a solution but I need a solution I dont have a queury Need to UPDATE table_product and remove duplicate company_name ( name of company) from cat_id (category)
What was the point in this post? ugh... fool. Try this method: Create a new table with the same fields as the original Extract all DISTINCT values from original table Insert them into the new table Drop original table Rename new table to original tables name or just add a unique index ALTER IGNORE TABLE your_table ADD UNIQUE INDEX(unique_field); Code (markup):
Hi, That also an option but we have close to 1 mil names in vendor names so duplicates are in these and across 8 categories