I have a lookup table, CUST, with columns:
CUST_ID
HOUSEHOLD_ID
I have two fact tables, OUTBOUND and RESPONSE, where CUST_ID is part of the primary key.
I want to create a report that has two counts:
1) COUNT (DISTINCT A.HOUSEHOLD_ID)
FROM CUST A, OUTBOUND B
WHERE A.CUST_ID=B.CUST_ID
2) COUNT (DISTINCT A.HOUSEHOLD_ID)
FROM CUST A, RESPONSE B
WHERE A.CUST_ID=B.CUST_ID
In other words, there are fewer households than there are customers. So I need a count of households mailed and households that have responded, without putting HOUSEHOLD_ID on the respective fact tables.
Thanks.
CUST_ID
HOUSEHOLD_ID
I have two fact tables, OUTBOUND and RESPONSE, where CUST_ID is part of the primary key.
I want to create a report that has two counts:
1) COUNT (DISTINCT A.HOUSEHOLD_ID)
FROM CUST A, OUTBOUND B
WHERE A.CUST_ID=B.CUST_ID
2) COUNT (DISTINCT A.HOUSEHOLD_ID)
FROM CUST A, RESPONSE B
WHERE A.CUST_ID=B.CUST_ID
In other words, there are fewer households than there are customers. So I need a count of households mailed and households that have responded, without putting HOUSEHOLD_ID on the respective fact tables.
Thanks.