FM
FlowMarket
Database & SQL Beginner ⚡ 5 n8n Nodes

Compare SQL datasets

This workflow compares 2 datasets from a single database. Two SQL nodes create a slightly different summary report based on the payments table. Both reports ...

🔌 Nodes & Integrations Used (2)

Compare Datasets My Sql

📖 Implementation & Setup Guide

This workflow compares 2 datasets from a single database.

Two SQL nodes create a slightly different summary report based on the payments table.

Both reports have the same structure, but different time periods. In addition to that, output from the "Orders from 2004 and 2005" node has an extra manipulation on the ordercount variable.

This makes Compare Datasets node to produce four outputs: data in A Only Branch, in B Only Branch, Same Branch records and Different Branch records.

Please refere to the MySQL Tutorial website and download the example database: https://www.mysqltutorial.org/mysql-sample-database.aspx

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Compare SQL datasets.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Database & SQL Workflows

View All in Database & SQL →