Delete Duplicate

I am new in SQL language and wanted to know if anyone can help with deleting a product based on the criteria that I have, I want the query to look at the product code, and product name if the complete date is equal to the harvest date I want the query to delete line item.I hope this makes since.

Code Product Harvest complete
1 Apple 9-1-2024 9-16-2024
1 Apple 9-6-2024 9-21-2024
2 Orange 8-1-2024 9-21-2024
3 Banana 8-1-2024 9-05-2024
3 Banana 9-05-2024 9-21-2024

It doesn't, at least to me.

"if the complete date is equal to the harvest date I want the query to delete line item". Based on the data, it looks you mean the complete date from one row matches the harvest date for a different row (but only for same Code). If so, then "delete the item", which one? The row with the matching complete date or harvest date? Or both of them??

Yes that is correct Scott, the complete date from one row matches the harvest date for a different row

So, in this case, you would want the only the first "Banana" row in your listing to be deleted, correct?

Very specifically... this row, correct???

3 Banana 8-1-2024 9-05-2024

And what is the datatype for the columns? It can make a difference when your real data is involved.