# tELTNetezzaOutput

Performs the action (insert, update, delete, or merge) on data in the specified Netezza table through the SQL statement generated by the tELTNetezzaMap component.

The three ELT Netezza components are closely related, in terms of their operating conditions. These components should be used to handle Netezza database table schemas to generate SQL statements, including clauses, which are to be executed in the database output table defined.

## tELTNetezzaOutput Standard properties

These properties are used to configure tELTNetezzaOutput running in the Standard Job framework.

The Standard tELTNetezzaOutput component belongs to the ELT family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Action on data | On the data of the table defined, you can<br>perform the following operation:<br><br><br>Insert: Adds new entries to the table.<br><br><br>Update: Updates entries in the table.<br><br><br>Delete: Deletes the entries which correspond to the<br>entry flow.<br><br>Merge: Merges the incoming data in one of the following<br>ways in the table.<br><br><ul> <li> <span>Use merge insert</span>. Select this option to create                           new entries and insert the incoming data to the specified columns of the                           new entries. To insert the incoming data to specific columns, select the                           columns in the table next to this option. You can also set a condition                           for this action by selecting the <span>Use merge insert                              condition</span> option and enter the condition in the field                           below. With the merge insert condition set, an entry will be created if                           the merge insert condition is not matched.</li> <li> <span>Use merge update</span>. Select this option to update                           specified columns of specific entries. You can select the columns to                           update in the table next to this option. You can also set a condition for                           this action by selecting the <span>Use merge update                              condition</span> option and enter the condition in the field                           below. With the merge update condition set, an entry will be updated if                           it matches the merge update condition. </li> <li> <span>Use merge delete</span>. Select this option to remove                           specific entries. You can set a condition for this action by selecting                           the <span>Use merge delete condition</span> option and enter                           the condition in the field below. With the merge delete condition set, an                           entry will be removed if it matches the merge delete condition. </li> </ul><br><br>Information noteNote:<br><br><ul> <li>The three <span>Merge</span> actions require that at least one column                           in the schema is set as the key column.</li> <li>The <span>Merge</span> option is available only when you have                           installed the 8.0.1-R2022-11 <span>Talend Studio</span> Monthly update or a later one delivered by <span>Talend</span>. For more information, check with your administrator.</li> </ul> |
| Schema and Edit Schema | A schema is a row description, it defines<br>the number of fields that will be processed and passed on to the next<br>component.<br><br><ul> <li> <span>Built-in</span>: The schema is created and                              stored locally for this component only. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</li> <li> <span>Repository</span>: The schema already exists                              and is stored in the Repository, hence can be reused. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</li> </ul><br><br>Click Edit<br>schema to make changes to the schema. If the current schema is of the Repository type, three options are available:<br><br><ul> <li> <p> <span>View schema</span>: choose this                option to view the schema only.</p> </li> <li> <p> <span>Change to built-in property</span>:                choose this option to change the schema to <span>Built-in</span> for local changes.</p> </li> <li> <p> <span>Update repository connection</span>:                choose this option to change the schema stored in the repository and decide whether                to propagate the changes to all the Jobs upon completion.</p> <p>If you just want to                propagate the changes to the current Job, you can select <span>No</span> upon completion and choose this schema metadata                again in the <span>Repository Content</span>                window.</p> </li> </ul><br><br>Click Sync columns to retrieve the schema from<br>the previous component connected in the Job. |
| Where clauses (for UPDATE and<br>DELETE only) | Enter a clause to filter the data to be updated or deleted<br>during the update or delete operations.<br><br>This field is available when Update or Delete is<br>selected from the Action on data<br>drop-down list and Use WHERE conditions<br>table is not selected. |
| Use WHERE conditions table | Select this option to invoke the Where conditions table table, where you can set filter<br>conditions by providing values in the Column, Function,<br>and Value fields of the Where conditions table.<br><br>This option is available when Update or Delete is<br>selected from the Action on data<br>drop-down list. |
| Where conditions<br>table | Add rows and enter conditions as prompted to filter the data<br>to be updated or deleted during the update or delete operation. A data<br>record is selected for the update or delete operation only when it matches<br>all the conditions set in this table.<br><br>In addition to the commonly used operators (such as =, &gt;=,<br>&lt;&gt;, and so on), the Function column of this table also provides<br>the following operators:<br><br><ul> <li> <span>BETWEEN</span>,                              which filters the data using an interval given in the <span>Value</span> field. The interval needs to                              be in the format of <span>&lt;start&gt; and                                  &lt;end&gt;</span>, for example: <span>10                                      and 20</span>. </li> <li> <span>LIKE</span>, which                              filters the data using a string given in the <span>Value</span> field. The string needs to be                              in the format of <span>sample_string%</span>.</li> <li> <span>IN</span>, which                              filters the data using the elements in a set given in the <span>Value</span> field. The set needs to be in                              the format of <span>(element1, element2, element3,                                  ...)</span>, for example: <span>(1,2,5)</span>.</li> </ul><br><br>This option is available when the Use WHERE conditions table option is selected. |
| Default Table Name | Enter the default table name, between<br>double quotation marks. |
| Table name from connection name is<br>variable | Select this check box when the name of the connection to this<br>component is set to a variable, such as a context variable. |
| Use different table name | Select this check box to define a<br>different output table name, between double quotation marks, in the<br>Table name<br>field that appears. |
| Mapping | Specify the metadata mapping file<br>for the database to be used. The metadata mapping file is used for the data<br>type conversion between database and Java. For more information about the<br>metadata mapping, see the related documentation for Type mapping.<br><br>Information noteNote: You can use Hive mapping to support Databricks Delta<br>Lake. |

## Advanced settings

| Properties | Description |
| --- | --- |
| tStatCatcher Statistics | Select this check box to gather the Job<br>processing metadata at a Job level as well as at each component<br>level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE: the number<br>of rows read by an input component or transferred to an output component. This is an<br>After variable and it returns an integer.<br><br>Information noteNote: Limited by JDBC driver, the value of this variable is -1<br>for merge actions, regardless of the actual merged lines.<br><br><br>NB\_LINE\_INSERTED: the number of<br>rows inserted. This is an After variable and it returns an integer.<br><br><br>ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | tELTNetezzaOutput is to be used along<br>with the tELTNetezzaMap. Note that the Output link to be used<br>with these components must correspond strictly to the syntax of the<br>table name.<br><br>Information noteNote:<br><br>Note that the ELT components do not<br>handle actual data flow but only schema information. |