Joins

In this lesson we are going to study about joins in a database . In order to join rows from multiple table or view we use join in our statement in this session we will briefly discussing the join and type of join in database .
JOINS:
  • Joins query are written in the where clause of the select statement.
  • Joins condition :comparing two columns of two tables.
  • Database engine joins the table according to the join condition .
  • If we want to join more then two table then database engine evaluates columns of the two tables and then it joins the result to the other table.
Have a look this image which shows the operation of the join.


Table A and Table B is having some common columns .by giving the condition in where clause we can have the result of joined table.
NOTE: The columns which are using in join condition must have the same datatype . otherwise it will give error and to prevent this cause if having different datatype but still we want to use that columns in join condition then use the cast function to convert the datatype and then use in join condition .




Type of Joins:
 Joins are classified according to the different type way the join operation performed on the tables.

we will discuss about all this Join in details in the next section .
Related Article
I am interested in hearing your feedback, so that I can improve my articles and learning resources for you.connect with us on facebooktwitter

Share

Did you enjoy reading this and found it useful? If so, please share it with your friends:

5 comments:

  1. Great and Nice Job done. Alot of us have been having serious headache about joining table and databases together for soo long.Thanks for the Post Once and again and keep the Good Work Alive. GOD bless you.

    ReplyDelete
    Replies
    1. Thanks,
      I will try to write more about the different type of join in comming Article.

      Delete
    2. Thanks for the topic well explained. I'm eagerly waiting for next section of joins.

      Delete
  2. Job well done. I'm eagerly waiting for the joins sections..keep up the good work.

    ReplyDelete
    Replies
    1. Hi
      The next article is on Cross on and here is the link
      http://tech4urhelp.blogspot.com/2012/06/cross-join.html
      and will write on other join as well very soon
      Thanks ,
      abhishek choudhary

      Delete