# Apply DataTable Operations

This activity is used to compare DataTables to get matched, unmatched, or combine the list of all rows in the DataTable inputs.

### Input

* **DataTable 1 :** [`DataTable Variable`](/getting-started/rpa-studio/variables/activity-variables.md#datatable)\
  Specifies the first DataTable to compare values.<br>
* **DataTable 2 :** [`DataTable Variable`](/getting-started/rpa-studio/variables/activity-variables.md#datatable)\
  Specifies the second DataTable to compare values.<br>
* **DataTable Operations** **:** \
  Specifies the type of data table operations to be used on the DataTable inputs. The data table operations available are:-
  * `Except` - To retrieve unmatched records from the first table.
  * `Intersect` - To retrieve all the rows which are in both tables.
  * `Union` - To retrieve the combined data from both the DataTable inputs. It does not repeat the DataRow even if it exists in multiple DataTables.

### Output

* **Output:** [`DataTable Variable`](/getting-started/rpa-studio/variables/activity-variables.md#datatable)\
  Specifies the variable that stores the resulting data table of the DataTable operation.\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/data/datatable/apply-datatable-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
