# ETL Testing/Cell By Cell Compare

This compare option will compare the data, or columns, of the source and target tables on various checks.

To create a *Cell By Cell Compare* flow:

* Drag a *Source* component from the palette to the canvas.
* Choose the *Input Source Configuration* and select the tables to compare.
* Drag a \_Target \_component from the palette to the canvas.
* Choose the *Input Source Configuration* and select the tables to compare
* Drag a *Data Compare* component and join the connections.
* Select *ETL Testing/Cell By Cell Comparison* from the drop-down menu that appears at the bottom of the screen.
* Select the primary key. By default, the primary key is selected for the tables. If the key is not selected, the system shows a warning sign for the user to select the *Primary Key*.
* Save and execute the flow.

[Data Compare Options](https://app.gitbook.com/@Vexdata/s/docs/flows/untitled-1/compare-cell-by-cell/cell-by-cell-compare/sql-transformation)

<figure><img src="https://2027008842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8uOTM2rdJeIbVeXK0c%2Fuploads%2Fyy2JouELaxQ94Qb0pcjO%2Fimage.png?alt=media&#x26;token=a410fbd0-759b-4306-9761-1095084e7ffd" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2027008842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8uOTM2rdJeIbVeXK0c%2Fuploads%2F3wwQVzJNuiv0OBQsjpld%2Fimage.png?alt=media&#x26;token=3fde385b-d9bc-4a43-aabb-f749024e727b" alt=""><figcaption></figcaption></figure>

Vexdata can compare the selected source and destination tables to view:

* *Cell Level Validation Results.*
* *Record Count Validations*
* *Source and Destination key Distributions.*

<figure><img src="https://2027008842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8uOTM2rdJeIbVeXK0c%2Fuploads%2FOGAct6zpoPTE7wYjpIjg%2Fimage.png?alt=media&#x26;token=ed07f087-5a8c-4660-8501-190a3a670c9d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2027008842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8uOTM2rdJeIbVeXK0c%2Fuploads%2Fe88elR4OWXxn2MlMI4FO%2Fimage.png?alt=media&#x26;token=3bb1c3a6-7e5b-411a-ac1c-b1d7844ce56a" alt=""><figcaption></figcaption></figure>
