SQL Selecione onde o ID não existe em outra tabela

where ID not in(select ID from T2 where HISTORY_FLG!=1)
Graceful Grouse