# Left

Les préfixes Join et Keep peuvent être précédés du préfixe left.

Utilisé avant join, il spécifie l'utilisation d'une jointure gauche. La table résultante contient uniquement des combinaisons de valeurs de champ provenant des tables de données brutes où les valeurs de champ de liaison sont représentées dans la première table. Utilisé avant keep, il indique que la deuxième table de données brutes doit être réduite à son intersection commune avec la première table avant d'être stockée dans QlikView.

Note InformationsVous recherchez la fonction de chaîne du même nom ? Voir : [Left - fonction de script et fonction de graphique](https://help.qlik.com/fr-FR/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/StringFunctions/Left.htm)

Syntaxe :

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

Arguments :

Arguments de chargement de la table

| Argument | Description |
| --- | --- |
| tablename | Table nommée à comparer à la table chargée. |
| loadstatement ou selectstatement | Instruction LOAD ou SELECT de la table chargée. |

Exemple :

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 |

Les deux tables de l'exemple avec keep sont bien entendu associées via A.

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

## En savoir plus

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