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