आंतरिक संदर्भ को व्युत्पन्न तालिका में लपेटें ।
DELETE FROM table
WHERE Concat(name, version) NOT IN (SELECT nv
FROM (SELECT Concat(name, Max(version))
AS nv
FROM table
GROUP BY name) AS derived)