# Join

The join prefix joins the loaded table with an existing named table or the last previously created data table.

Syntax:

[inner | outer | left | right ]Join [ (tablename ) ]( loadstatement | selectstatement )

The join is a natural join made over all the common fields. The join statement may be preceded by one of the prefixes inner, outer, left or right.

Arguments:

Table load arguments

| Argument | Description |
| --- | --- |
| tablename | The named table to be compared to the loaded table. |
| loadstatement or selectstatement | The LOAD or SELECT statement for the loaded table. |

Example:

`Join LOAD 
 * from abc.csv;` ` ` `Join SELECT  
 * from table1;` ` ` ` tab1:  ` `LOAD * from 
 file1.csv;` `tab2:` `LOAD * from 
 file2.csv;` ` .. .. ..  ` `join (tab1) 
 LOAD  * from file3.csv;`

## Learn more

* [Inner](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Inner.htm)
* [Outer](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Outer.htm)
* [Left](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Left.htm)
* [Right](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Right.htm)
* [Keep](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Keep.htm)
* [Combining tables with Join and Keep](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/combine-tables-with-join-keep.htm)