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]

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c1c2-44e8a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c1c2-44e8a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?