beckwiga
Programmer
- Mar 30, 2005
- 70
I'm not sure if it's possible, but here is what I'm trying to do...
I have t_fact_pops table which contains records of pops. In this table, I have fields Expected and Available (among others). When a pop is expected but not available, no record is created in this table. So, in this table all records will have a 1 for Expected and a 1 for Available.
I have another table t_suc_pic_bra_pop which contains all possible brand, pop and suc_pic combinations. My goal is to refer to this table and return or create records for those pop ids which are not in my t_fact_pops table.
For example, please see my print screen. In this example, I would like my query to return the 2 rows in the t_suc_pic_bra which do not exist in t_fact_pops. Additionally, not all data in t_fact_pops is available in t_suc_pic_bra_pop which means I would like to use the values of the t_facts table for those columns.
Anybody have any idea if this is possible? Where would I start with this? Any suggestions are much appreciated.
greg
I have t_fact_pops table which contains records of pops. In this table, I have fields Expected and Available (among others). When a pop is expected but not available, no record is created in this table. So, in this table all records will have a 1 for Expected and a 1 for Available.
I have another table t_suc_pic_bra_pop which contains all possible brand, pop and suc_pic combinations. My goal is to refer to this table and return or create records for those pop ids which are not in my t_fact_pops table.
For example, please see my print screen. In this example, I would like my query to return the 2 rows in the t_suc_pic_bra which do not exist in t_fact_pops. Additionally, not all data in t_fact_pops is available in t_suc_pic_bra_pop which means I would like to use the values of the t_facts table for those columns.
Anybody have any idea if this is possible? Where would I start with this? Any suggestions are much appreciated.
greg