# Right

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

Se usado antes de join, especifica que right 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 segunda tabela. Se usado antes de keep, especificará que a primeira tabela de dados brutos deverá ser reduzida à sua interseção comum com a segunda tabela antes de ser armazenada no QlikView.

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

Sintaxe:

Right (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:` `SQL SELECT * 
 from table1;` `right join 
 SQL SELECT * from table2;`

Example 1C

| QVTable | - | - |
| --- | --- | --- |
| A | B | C |
| 1 | aa | xx |
| 4 | - | yy |

`QVTab1:` `SQL SELECT  * 
 from Table1;` `QVTab2:` `right keep 
 SQL SELECT * from Table2;`

Example 1D

| QVTab1 | - |
| --- | --- |
| A | B |
| 1 | aa |

Example 1E

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

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

` tab1:  ` `LOAD * from 
 file1.csv;` `tab2:` `LOAD  * from 
 file2.csv;` ` .. .. ..  ` `right keep 
 (tab1) LOAD * from file3.csv;`

## Saiba mais

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