Hello. It is necessary to remove duplicates in sqlite. I wrote such a query, but I write an error like no such column tmp.id. The tmp table is a complete duplicate of the variant. Huge please help.
delete from variant WHERE (variant.id < tmp.id ) AND (variant.user_id=tmp.user_id) AND (variant.test_id=tmp.test_id)