Learn T-SQL Commands with Samples
Skip Navigation Links
Skip Navigation Links.
Expand DatabaseDatabase
Expand TableTable
Expand ViewView
Expand Stored ProcedureStored Procedure
Expand Data FilteringData Filtering
Expand Data GroupingData Grouping
Collapse JoinsJoins
Expand TriggerTrigger
Expand CursorCursor
Expand OperatorsOperators
Expand ConstraintsConstraints
Expand FunctionsFunctions
Expand Conditional ProcessingConditional Processing
Expand LoopingLooping
Expand Error HandlingError Handling
Expand v.IMP Queriesv.IMP Queries
Expand XMLXML
Expand Query PerformanceQuery Performance
Expand QueriesQueries
Expand NormalizationNormalization
Expand CreateCreate
     

Joins

 
* Inner Join : Returns all rows from both tables where there is a match.

* Left Join : Returns all the rows from the first Table, even if there are no matches in the second Table.

* Right Join : Returns all the rows from the second Table, even if there are no matches in the first Table.

* Full Join : Returns all the rows from both Tables

* Self Join : A table can be joined to itself in a Self Join

* Cross Join : Produces the Cartesian product of the tables involved in the join.