Skip to main content

SetOperation

SQL Gem

Use the SetOperation Gem to perform addition or subtraction of rows from Models with identical schemas and different data.

Parameters

ParameterDescriptionRequired
Model 1First input SourceTrue
Model 2Second input SourceTrue
Model NNth input SourceFalse
Operation typeOperation to perform
- Union: Returns a Model containing rows in any one of the input Sources, while preserving duplicates.
- Intersect: Returns a Model containing rows in all of the input Sources, while preserving duplicates.
- Except: Returns a Model containing rows in the first Source, but not in the other Sources, while preserving duplicates.
True
info

To add more input Sources, simply click + icon on the left sidebar Set Operation - Add input dataframe

Examples


Operation Type - Union

Example usage of Set Operation - Union


Operation Type - Intersect

Example usage of Set Operation - Intersect


Operation Type - Except

Example usage of Set Operation - Except