I need to delete some specific duplicates from my database. I've created a query that finds the records I need, but when running it as a subquery I get the error "operand should contain 1 column
" I don't know how to get the specific information I need while only choosing a single column.
The query is :
delete
from products
where id in (SELECT *
FROM products
GROUP BY part_number
HAVING count(*) > 1 and manufacturer_id="4146"
)
Any idea how I can get this to work?