Laravel 8 tutorial in Hindi - Joins

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • In this laravel 8 video tutorial, we learn what is join and how to use join in laravel tutorial a simple way. This video is made by anil Sidhu in the Hindi language.
    steps of video
    What is Join
    Make Controller
    Import DB Files
    Join with where the condition
    Interview Question on laravel DB
    Laravel 9 tutorial in hindi
    Laravel tutorial in Hindi
    Laravel 9 playlist in Hindi
    • Laravel 9 tutorial in ...

Комментарии • 18

  • @codestepbystep
    @codestepbystep  2 года назад +2

    Please support me by subscribe, like and comment :) thank you

  • @NareshKumar-xf6rl
    @NareshKumar-xf6rl 4 года назад +15

    LEFT JOIN: This join returns all the rows of the table on the left side of the join and matching rows for the table on the right side of join. The rows for which there is no matching row on right side, the result-set will contain null.
    Ex: $users = DB::table('users')
    ->leftJoin('posts', 'users.id', '=', 'posts.user_id')
    ->get();
    RIGHT JOIN: RIGHT JOIN is similar to LEFT JOIN. This join returns all the rows of the table on the right side of the join and matching rows for the table on the left side of join. The rows for which there is no matching row on left side, the result-set will contain null.
    Ex: $users = DB::table('users')
    ->rightJoin('posts', 'users.id', '=', 'posts.user_id')
    ->get();

  • @pradipbasel5828
    @pradipbasel5828 3 года назад +1

    owesome tutorail thank you so much sir

  • @usmanahmed5213
    @usmanahmed5213 2 года назад

    thankuh sir

  • @sabkuchmilega202
    @sabkuchmilega202 3 года назад

    same procedure we can follow for left join or right join but instead of join method we will using leftJoin and rightJoin method.

  • @Islamicworld__902
    @Islamicworld__902 Год назад

    nice!

  • @shubhamkanojia5593
    @shubhamkanojia5593 4 года назад +2

    can you make a video on how to handle multiple textinput field in react native....if it is available please provide a link....

    • @codestepbystep
      @codestepbystep  4 года назад +1

      sure, just give me some time , i will make a video on this

    • @laughitout9299
      @laughitout9299 3 года назад

      @@codestepbystep there will be an error if we join table created manually and table created by migration as their "Collation" will be different. i got this error and solved it by changing "Collation" .

  • @hariprasadhari5045
    @hariprasadhari5045 3 года назад +1

    can we join multiple tables through join

  • @peeyushsachan2591
    @peeyushsachan2591 3 года назад

    Join or foreignkey me difference hai kya kon jada acha hai

  • @usmanfarooq3702
    @usmanfarooq3702 11 месяцев назад

    left joins
    $results = DB::table('left_table')
    ->leftJoin('right_table', 'left_table.id', '=', 'right_table.left_table_id')
    ->select('left_table.*', 'right_table.column as joined_column')
    ->get();
    right joins:
    $results = DB::table('left_table')
    ->rightJoin('right_table', 'left_table.id', '=', 'right_table.left_table_id')
    ->select('left_table.column as joined_column', 'right_table.*')
    ->get();

  • @abhisheklale1429
    @abhisheklale1429 3 года назад

    how to insert data into another table using joins?