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