DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
$result = Exams::whereNotIn('id', function($q){ $q->select('examId')->from('testresults'); })->get();