Home > DeveloperSection > Interviews > What is a "join"?

Posted on    October-25-2010 12:00 AM

 MSSQL Server MSSQL Server 
 1 Answer(s)
  1186  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    October-30-2010 12:00 AM

The JOIN keyword is used in an SQL statement to query data from two or more tables, based on a relationship between certain columns in these tables. Tables in a database are often related to each other with keys.
A primary key is a column (or a combination of columns) with a unique value for each row. Each primary key value must be unique within the table. The purpose is to bind data together, across tables, without repeating all of the data in every table.

Types of join:

Inner Join
Outer Join
Full Join
Right Join

Don't want to miss updates? Please click the below button!

Follow MindStick