ZKUSTE vybrat maximální ID
seskupit podle db_type
nejprve a poté jej použijte jako dílčí dotaz s not in
.
DELETE FROM MyTable
WHERE ID NOT IN
(SELECT ID FROM
(SELECT MAX(ID) AS ID from MyTable GROUP BY DB Type) AS tb1
)
EDIT:
DELETE FROM MyTable
HAVING MAX(ID) > ID;