CREATE TABLE MAIN
(
NAME TEXT NOT NULL,
Error_List CHAR(50),
Warning_List CHAR(50),
Advice_List CHAR(50),
Total CHAR(50),
Note CHAR(50),
UNIQUE (NAME, Error_List, Warning_List, Advice_List, Total, Note) ON CONFLICT IGNORE
);
INSERT OR REPLACE INTO MAIN (...) VALUES (...)
SELECT DISTINCT id FROM Table -- use "DISTINCT" to ignore same values