# Left

Os prefixos Join e Keep podem ser precedidos pelo prefixo left.

Se usado antes de join, especifica que left join deve ser usado. A tabela resultante só conterá combinações de valores de campo das tabelas de dados brutas nas quais os valores de campo de link são representados na primeira tabela. Se usado antes de keep, especificará que a segunda tabela de dados brutos deverá ser reduzida à sua interseção comum com a primeira tabela antes de ser armazenada no QlikView.

Nota informativaVocê estava procurando pela função de caracteres pelo mesmo nome? Consulte: [Left – função de script e gráfico](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/Left.htm)

Sintaxe:

Left ( Join | Keep) [ (tablename) ](loadstatement | selectstatement)

Argumentos:

Argumentos de carregamento de tabela

| Argumento | Descrição |
| --- | --- |
| tablename | A tabela nomeada a ser comparada com a tabela carregada. |
| loadstatement or selectstatement | O comando LOAD ou SELECT da tabela carregada. |

Exemplo:

Example 1A

| Table1 | - |
| --- | --- |
| A | B |
| 1 | aa |
| 2 | cc |
| 3 | ee |

Example 1B

| Table2 | - |
| --- | --- |
| A | C |
| 1 | xx |
| 4 | yy |

`QVTable:` `SELECT  * 
 From table1;` `Left Join 
 Select * From table2;`

Example 1C

| QVTable | - | - |
| --- | --- | --- |
| A | B | C |
| 1 | aa | xx |
| 2 | cc |  |
| 3 | ee |  |

`QVTab1:` `SELECT * 
From Table1;` `QVTab2:` `Left Keep 
SELECT * From Table2;`

Example 1D

| QVTab1 | - |
| --- | --- |
| A | B |
| 1 | aa |
| 2 | cc |
| 3 | ee |

Example 1E

| QVTab2 | - |
| --- | --- |
| A | C |
| 1 | xx |

As duas tabelas no exemplo de keep são, obviamente, associadas pelo A.

` tab1:  ` `LOAD * From 
 file1.csv;` `tab2:` `LOAD * From 
 file2.csv;` ` .. .. ..  ` `Left Keep 
 (tab1) LOAD * From file3.csv;`

## Saiba mais

* [Join](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Join.htm)
* [Keep](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Keep.htm)
* [Inner](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Inner.htm)
* [Outer](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Outer.htm)
* [Right](https://help.qlik.com/pt-BR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Right.htm)