SQLite: Remove duplicate rows

--  Identify duplicate rows
SELECT MIN(ROWID) FROM all_chems GROUP BY cas_number;

-- Remove duplicates
DELETE FROM all_chems WHERE ROWID NOT IN (
	SELECT MIN(ROWID)
	FROM all_chems
	GROUP BY cas_number
	);

"You want a toe? I can get you a toe. There are ways, Dude. You don't wanna know about it, believe me."