@@ -304,6 +304,7 @@ methods:
304304 $where = "name={$name} AND status='boss' OR status='active'";
305305 $builder->where($where);
306306
307+ .. _query-builder-where-subquery :
307308#. **Subqueries: **
308309
309310 ::
@@ -318,10 +319,8 @@ methods:
318319
319320 // With builder directly
320321 $subQuery = $db->table('orders')->select('MAX(advance_amount)', false)->where('id >', 2)
321-
322322 $builder->where('advance_amount <', $subQuery);
323323
324-
325324**$builder->orWhere() **
326325
327326This function is identical to the one above, except that multiple
@@ -350,7 +349,6 @@ You can use subqueries instead of an array of values::
350349
351350 // With builder directly
352351 $subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
353-
354352 $builder->whereIn('id', $subQuery);
355353
356354**$builder->orWhereIn() **
@@ -373,7 +371,6 @@ You can use subqueries instead of an array of values::
373371
374372 // With builder directly
375373 $subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
376-
377374 $builder->orWhereIn('id', $subQuery);
378375
379376**$builder->whereNotIn() **
@@ -396,7 +393,6 @@ You can use subqueries instead of an array of values::
396393
397394 // With builder directly
398395 $subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
399-
400396 $builder->whereNotIn('id', $subQuery);
401397
402398**$builder->orWhereNotIn() **
@@ -419,7 +415,6 @@ You can use subqueries instead of an array of values::
419415
420416 // With builder directly
421417 $subQuery = $db->table('users_jobs')->select('job_id')->where('user_id', 3);
422-
423418 $builder->orWhereNotIn('id', $subQuery);
424419
425420************************
@@ -561,7 +556,6 @@ You can use subqueries instead of an array of values.::
561556
562557 // With builder directly
563558 $subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
564-
565559 $builder->havingIn('id', $subQuery);
566560
567561**$builder->orHavingIn() **
@@ -586,7 +580,6 @@ You can use subqueries instead of an array of values.::
586580
587581 // With builder directly
588582 $subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
589-
590583 $builder->orHavingIn('id', $subQuery);
591584
592585**$builder->havingNotIn() **
@@ -611,7 +604,6 @@ You can use subqueries instead of an array of values.::
611604
612605 // With builder directly
613606 $subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
614-
615607 $builder->havingNotIn('id', $subQuery);
616608
617609**$builder->orHavingNotIn() **
@@ -636,7 +628,6 @@ You can use subqueries instead of an array of values.::
636628
637629 // With builder directly
638630 $subQuery = $db->table('users_jobs')->select('user_id')->where('group_id', 3);
639-
640631 $builder->orHavingNotIn('id', $subQuery);
641632
642633**$builder->havingLike() **
0 commit comments