sql list values that are not in table code example Example: sql find not in list SELECT * FROM TABLENAME WHERE ID NOT IN (1, 2, 3);