SQL Tutorial - 29: SQL JOINS

Поделиться
HTML-код
  • Опубликовано: 26 окт 2024

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

  • @mohitnehete2
    @mohitnehete2 6 месяцев назад +32

    Watching in 2024😢

  • @max5175
    @max5175 7 лет назад +34

    Great tutorial. I was pretty intimidated by JOINS but you made it nice and simple. Thanks man

  • @rockxiong8264
    @rockxiong8264 Год назад +1

    Thank you very much for the second part. Most of the videos on joins doesn't include the second portion of this video where you utilize the "where" clause. Earned yourself a subscriber.

  • @suravshrestha5623
    @suravshrestha5623 6 лет назад +11

    Very simple and to the point explanation of how JOINS work in SQL.

  • @k_oliver
    @k_oliver 11 месяцев назад +1

    One of the simplest and yet ery helpful tutorial Ive found! thanks man! keep this up :)

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

    This is all I needed looked for hours and hours and couldn't find anything solid.
    Great work man thanks👍🏻👍🏻

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

      Thanks Sarang, glad you found this helpful :)

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

      @@madhurbhatia89 speak in Hindi for better explanation

  • @Dartholit1
    @Dartholit1 5 лет назад +3

    Thank you so much for you SQL videos!!! I'm passing my database class thanks to you.

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

    I love the way you present your tutorials sir

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

    This is the best way to perform an Excel VLOOKUP in SQL, thanks

  • @ninaa7661
    @ninaa7661 5 лет назад +40

    Suggestion to show both tables on the screen while creating JOIN query

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

      What

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

      Pro tip : watch series at flixzone. I've been using them for watching lots of of movies lately.

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

      @Moses Samuel Definitely, been watching on flixzone for years myself :)

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

      @Moses Samuel Yea, have been watching on Flixzone for years myself :D

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

    IT helped me alot sir keep making vids
    but iam 11years trying to learn sql it helped me alot thanks..

  • @woedemgodoga5624
    @woedemgodoga5624 4 месяца назад

    Thank you. well understood. Can you please do a video on left joi,right join and outer join

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

    Thanks a ton, This has greatly helped me, I am defintely going to share with my friends who is looking for join tutorial
    Also, I just subscribed you

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

    Great tutorial man. Big thumbs up brother!

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

    Thanks for sharing I just learned joins!!!

  • @timchunk1248
    @timchunk1248 8 лет назад

    Thank you ! I view this video twice, and i learned join!

  • @k___T1151
    @k___T1151 3 месяца назад

    tnx ,you explaind it in a simple way

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

    The second method is called equi join we use = operator and first one is using join keyword . Nice explanation for beginners

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

    That last bit of the video was helpful to really understand the Joins since I use the 'less preferred one but more commonly used' lol didnt event realize it

  • @joan.nakibuuka1322
    @joan.nakibuuka1322 4 года назад +2

    I'm new to this and you are making it way easier than i imagined. Thank you

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

    Thank you so much for your time and your awesome explanations. Greetings from Lithuania! :)

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

    Hello thank you for you tuto what is the interface that you are using ?

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

    I have a question: what's the name of this new joined table? How can I see it to enable me to query it

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

    By giving example like this you are automatically getting my likes😊

  • @rodm8113
    @rodm8113 2 года назад +1

    better than my uni professor!

  • @MotoGPFan33
    @MotoGPFan33 3 месяца назад

    I am having trouble finding help on how to do Insert Into Select w/ join feature .
    I have data in table 1, which describes a motorsports racing session. I have table 2 which has information about each of the riders including their bike number, team , manufacturer, name, etc. - both tables have a column Rider ID, where the Riders table (table 2) has Rider ID as the primary key, and on the Table 1 , Rider ID is the foreign key.
    I want to write a insert into select join statement that merges in the individual rider data such as bike number, team, manufacturer , and name - into Table 1 . Can you help me please?

  • @blainejantze6565
    @blainejantze6565 4 года назад

    Great Tutorial, makes JOINS look easy

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

    Suppose you are given a relation grade points(grade, points), which provides a conversion
    from letter grades in the takes relation to numeric scores; for example, an “A” grade could
    be specified to correspond to 4 points, an “A−” to 3.7 points, a “B+” to 3.3 points, a “B”
    to 3 points, and so on. The grade points earned by a student for a course offering (section)
    is defined as the number of credits for the course multiplied by the numeric points for the
    grade that the student received.
    Given the above relation, and our university schema, write each of the following
    queries in SQL. You can assume for simplicity that no takes tuple has the null value for
    grade.
    a. Find the total grade-points earned by the student with ID 12345, across all courses
    taken by the student.
    b. Find the grade-point average (GPA) for the above student, that is, the total gradepoints divided by the total credits for the associated courses.
    c. Find the ID and the grade-point average of every student.
    LODI PA TUTORIAL NGA NITO PARA MAY GUIDE ME SA SUNOD NA ACTIVITY SALAMAT

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

    Simply super bro.. you made my day

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

    Thanks, helped me a lot!

  • @VampireHeartization
    @VampireHeartization 5 лет назад +1

    You can actually notice that the amount of results when using an Inner Join is 12, and then after you removed it to use WHERE, it is 13. I was wondering what are you missing out on?

  • @SahitiSeemakurti
    @SahitiSeemakurti 8 лет назад +2

    Nice Tutorial, especially when I watch it in 1.5X speed.
    Also, This JON example you did, is it an INNER JOIN or OUTTER JOIN?
    How do you distinguish these two JOINs in code?

    • @abhijeetgupto
      @abhijeetgupto 6 лет назад

      Sahiti Ss exactly , how to distinguish?

  • @okkamagad
    @okkamagad 9 лет назад +2

    Hey Madhur, i see that we got 12 results when we used the Join query, but we got 13 results when we used Where clause, can you explain this briefly ? is it not recommended to use where clause for this kind of queries ?

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

    Khush raho yaaar asan krdeya tumne ❤️

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

    What is the query to find no in ascending or descending order from 2 different tables at the same time?

  • @sofianetech379
    @sofianetech379 4 месяца назад

    thank you so mutch the firs method is awsome

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

    Super Like I am a beginner you made it simple Thank You !

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

    what would the query be if I wanted ALL the columns from both the tables? Do I still have to type out each column? Is there a shorter way? like Select * from both tables and join them somehow?

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

    What is the query to find out highest values from 2 different tables at the same time?

  • @tetsuoshima454
    @tetsuoshima454 9 лет назад

    Already passed mid-way mark. Great work.

  • @ezabelaah9451
    @ezabelaah9451 4 года назад

    Hi I would like to take sql training from you. Please let me know how much you will charge. Thanks

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

    How can I add column named first name and last name from database employee to table name title with all the data

  • @gtry-bq5mw
    @gtry-bq5mw 3 года назад

    hi, do i need to put 'AS' in clausing the table? sorry, i'm confused

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

    tbh nobody ever really told me that joins were difficult !i guess it is one of the pros self studying hahahaha

  • @Runderwunderknopf
    @Runderwunderknopf 9 лет назад

    Oh Maaaan, your Turoials are awesome! Thank you!

  • @smtbhav3014
    @smtbhav3014 8 лет назад

    Hi Madhur, I am trying to create a table in sql workbench where i want create a column where i want to insert ip address but not sure which data type should i select, so could you help me with the correct data type for ip address.

  • @azanshaikh7825
    @azanshaikh7825 6 лет назад

    this wasn't bad at all. Thank you,kind sir!

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

    Thanks boss!
    This SQL sh*t is light work.

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

    Very useful and straight to point thank you

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

    How to input: films starting with S and T in SQL. Thank you

  • @at5music622
    @at5music622 6 лет назад

    Did you make id in the second table as primary key?

  • @sadmanpranto9026
    @sadmanpranto9026 4 года назад

    You didn't explain why ON is preferred over WHERE.

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

    was very helpful simple video!!

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

    Well explain and clear

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

    btw very simple and easy to understand thanks!

  • @darshanabhuyan8479
    @darshanabhuyan8479 4 года назад

    Excellent explanation

  • @JATINKUMAR-qu4vi
    @JATINKUMAR-qu4vi 2 года назад +1

    Really helpful

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

    You explained that really well, thanks

  • @ShoppingStew
    @ShoppingStew 6 лет назад

    Thank you so much for these tutorials!

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

    Nice tutorial!

  • @kaoutarlkhou4232
    @kaoutarlkhou4232 9 лет назад

    no need for triggers, to join 2 tables?

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

    Nicely explained without extra bs

  • @real_anil9688
    @real_anil9688 6 лет назад

    what if we have to write 'officer's name' as a string it will end at officers .

  • @osamaghazal2480
    @osamaghazal2480 8 лет назад

    If anyone here can help
    I tried following exact the same steps to execute the join command but it didn't work ?
    Is that because he populated the id column in the tutorial_info table from the old tutorial or what ??
    and if we have to fetch the id column from the old tutorial, what is the syntax for inserting the remaining values (views, likes, dislikes, shares) without writing the id value ? how can we skip that?

  • @salmanfaris4679
    @salmanfaris4679 5 лет назад

    its very helpful tutuorial,thanks bro

  • @6458-l7v
    @6458-l7v 7 лет назад

    What kind of sql is this?
    I'm using oracle and it's giving me error "from tutorials as t" (@6:06) where t is underlined in red, saying SQL command not properly ended.
    What gives?

  • @jamilamammadova4556
    @jamilamammadova4556 4 года назад

    How can I get sql file like in that video?

  • @janarddansarkar3447
    @janarddansarkar3447 7 лет назад

    can we join more than two tables?

  • @ParentFor07Cats
    @ParentFor07Cats 5 лет назад

    it is just awesome man thanks :)

  • @ryanmccleave3562
    @ryanmccleave3562 8 лет назад

    Love this tutorial, thank you!

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

    @badtutorial What is 'CROSS JOINS'

  • @Pchbt
    @Pchbt 7 лет назад

    Very clear, thank you !

  • @yanirazelaya5378
    @yanirazelaya5378 7 лет назад

    Excellent work, The bad Tutorialssssssssss

  • @AbCd-zo5tb
    @AbCd-zo5tb 5 лет назад

    i don't understand why people don't like the video after watching it?

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

    Thank you

  • @kanikasharma9503
    @kanikasharma9503 9 лет назад +1

    your videoz r vryy helpful!!!

  • @preethivaidyanathan3368
    @preethivaidyanathan3368 7 лет назад

    So helpful, thank you!

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

    Great stuff!

  • @JATINKUMAR-qu4vi
    @JATINKUMAR-qu4vi 2 года назад

    Thank a lot 👍👍

  • @ramakrishnannarayanan4202
    @ramakrishnannarayanan4202 7 лет назад +1

    can you please provide the insert queries for your table.

    • @damiantoczek4814
      @damiantoczek4814 6 лет назад

      (table).(column) = SELECT users.username, users.profiledescription,stats.postcount FROM users,stats;
      With Insert you do the same.
      INSERT INTO users,stats (users.username,users.profiledescription,stats.postcount) VALUES ('$username','$description','postcount');
      You could also do:
      INSERT INTO users,stats (username,profiledescription,postcount) VALUES ('$username','$description','postcount');
      You need to keep in mind that you can not have 2 same colum names in two tables, if you have 2 same column names you need to specify the table. 'table.username' or 'stats.username'. If you have only a "profiledescription" column inside the "users" table but NOT inside "stats" you do NOT need to type 'users.profiledescription'.
      @Edit, before people start crying and leaving shit comments on me, i know that Sai's comment is 1year+ old, this video is from 2014 and i still came hear and learned something. When someone watches this tutorial... he might also ask about the "Insert query"... so here is the answer (above).

  • @doenil470
    @doenil470 5 лет назад

    You a genius.

  • @chandrapolineni2452
    @chandrapolineni2452 10 лет назад

    I am using Oracle DB and while aliasing a table name i am unable to use AS. I had to use table alias like this " tutorial t".
    Is this because of Oracle dialect?

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

    thanks

  • @dherendrachaudhary6728
    @dherendrachaudhary6728 7 лет назад

    we can perform join operation only when two table have same number of row and column.

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

    cheers man

  • @29ibrahimsayed95
    @29ibrahimsayed95 Год назад

    awesome

  • @abhishekshukla9970
    @abhishekshukla9970 7 лет назад

    how to rename colunm?

    • @shwetagarg6892
      @shwetagarg6892 5 лет назад +1

      SELECT column_name AS rename
      FROM table_name;

  • @LiuLinplus
    @LiuLinplus 10 лет назад

    It helps,thx.

  • @billiejl6237
    @billiejl6237 7 лет назад

    THANK YOU!

  • @ae1550
    @ae1550 8 лет назад

    Superb

  • @junaidengineerings
    @junaidengineerings 4 года назад

    your name is good.

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

    Assalamualaikum

  • @varunbhardwaj7032
    @varunbhardwaj7032 8 лет назад

    hi Madhur,
    what is ur email id?

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

    Am i the only one who didn't understand much?

  • @Rajeeb701
    @Rajeeb701 7 лет назад

    nice

  • @Christian0905
    @Christian0905 2 месяца назад

    👏👏👏

  • @tommyjones1357
    @tommyjones1357 4 года назад

    Alright, for those poor bastards out there trying to learning Kusto Query Language where tutorials do not exist, the translation would be:
    | join OTHER_TABLE on $right._COLUMN_NAME == $left._COLUMN_NAME
    This will merge the two tables where the column name is matches.

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

    Urdu my sikhaen plz

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

    Kya kya bolta hai Bhai Hindi bol Yaar Kuch samjh Nahi kya kya Kiya

  • @donny2123
    @donny2123 8 лет назад

    thank you.