Hello team,
I have a query as:
select count(distinct sfdc_account_id), from account union select count(distinct account_id), from fct_acco
I want to know if both counts from above query are same or not? How to do this in matillion?
Hello team,
I have a query as:
select count(distinct sfdc_account_id), from account union select count(distinct account_id), from fct_acco
I want to know if both counts from above query are same or not? How to do this in matillion?
Hello @aditya.kommu
Thank you for raising your post and welcome to the Matillion Community!
There are several ways to achieve this, I have shared some below for you to read over and check out:
Set Up Data Sources:
Aggregate the Counts:
Join or Union the Results:
Comparison Logic:
Calculator Component:
CASE WHEN account.distinct_count = fct_acco.distinct_count THEN 'Equal' ELSE 'Not Equal' END AS comparison_result
I hope this helps, please let me know how you get on :)
Kind regards, Joe