In case your actual dataset for second query include something more than a single column:
Use two transformations:
- "Join by field"
- Mode: OUTER,
- Field: name of column with the same values (columns have to be named the same in both datasets),
- "Filter data by values"
- Filter type: EXCLUDE,
- Conditions: Match all,
and add a condition for every column present in dataset 2 (except for the "key" column): Is null
.
If your actual dataset for second query contains only key fields, you'll need to modify your queries to have additional columns.
For example, it can be done with query
with t1 as (
--your original query here
)
select val, val unique2 from t1
-- val here is assumed name of your "key" column
Then apply solution described above, with additional Transformation "Organize fields", to hide additional column.