NOT INを使用できます SELECT * FROM Tab1 WHERE id NOT IN ( SELECT id FROM Tab1 WHERE int_attribute_of_Tab1>0 )