Compare SQL datasets

Nodes

1750b6d1-d124-4217-a0ab-3402db821b80c26ee7ea-e01b-42ad-8f48-355916f8914c

Tags

Created by

n8n8n Team

Last edited 38 days ago

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

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!