Hey so I have one set of data with the structure:
id product_number product_type
1 1001 car
2 1002 house
But the data has some duplicates where:
id product_number product_type
1 1001 car
2 1001 house
I need to delete the duplicates but only the value which is = house.
In my mind the query should be like:
DELETE *
FROM table
WHERE product_number is duplicate AND product_type = house
Thanks