> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/build/compare-datasets.md).

# Compare two inputs with Compare Datasets in Duaer

In Duaer, Compare Datasets has Input A and Input B, and four outputs: In A only, Same, Different, and In B only. Pair rows with Fields to Match.
## Match on fields, then branch on diffs

1. Search for Compare Datasets. Connect one branch to Input A and the other to Input B.
2. Under Fields to Match, add a row. Set Input A Field and Input B Field, for example both to id.
3. On current versions, When There Are Differences defaults to Include Both Versions.
4. Select Execute step. Check which items land on each of the four output branches.

When There Are Differences can also be Use Input A Version, Use Input B Version, or Use a Mix of Versions.

Fuzzy Compare treats the number 3 and the string 3 as the same. For joining branches, refer to [Merge branches in Duaer](/flow-logic/merging.md).
## Questions

### How is Compare Datasets different from Merge in Duaer?

Compare Datasets is built for two-way diff and four difference branches. Merge combines items by mode. Use Merge to join; use Compare Datasets to find only-in-A, only-in-B, same, or different.

