WHERE NOT EXISTS in ActiveRecord / RailsTagged activerecord, exists, not, rails Languages rubyJob.where( 'NOT EXISTS (:people)', persons: People.select('1').where('jobs.id = people.job_id') ) Edit Delete