AcademyWorkflowsData and reporting

Compare SQL datasets

Data or finance analysts who need to check whether two reports or periods match, or find what changed.

  • Recommendedour rating
  • 2,543views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

compare-sql-datasets.json

Loading the file...

What it does

Runs two SQL queries against the same MySQL database and compares their results. The example builds two payment summaries for different periods, then a Compare Datasets step sorts the rows into four outputs: only in A, only in B, the same in both, and different between the two. It uses the MySQL sample database.

Use cases

  1. 01Find orders that appear in one period but not another
  2. 02Spot rows where a total differs between two reports
  3. 03Check a new report against the one it replaces

Connects

MySQL

Questions about
Compare SQL datasets.

What is Compare SQL datasets used for?

Data or finance analysts who need to check whether two reports or periods match, or find what changed. Runs two SQL queries against the same MySQL database and compares their results. The example builds two payment summaries for different periods, then a Compare Datasets step sorts the rows into four outputs: only in A, only in B, the same in both, and different between the two. It uses the MySQL sample database.

How do I import Compare SQL datasets into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Compare SQL datasets safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.