Delete duplicate data in a field

the case is that one field of data has many identical items, but other fields have different data.
I want to select the same field first and then delete the statement that is different but the data is small, leaving only the largest statement according to the difference of the other field.

deleting duplicate data in one field is determined by taking the largest

in another field.
Mar.18,2021

DELETE * WHERE [KEY_ID] NOT IN (SELECT MIN (KEY_ID) FROM [TABLE] ORDER BY [KEY])

Delete all data in [table] except for the least sorted data in [key]

Menu