I need some advice.
I have an issue with joining two tables.
Example: Owner has a five-piece composite key
Position has a Six piece composite key
Owner Table has
As_Of_Date(Key), PORT_CD (Key), Deal_Or_Schedule (Key), Deal_Sched_No(Key),owner_port_cd (Key),Percent
Position table has As_Of_Date (Key),PORT_CD (Key),Deal_Or_Schedule (Key), Deal_Sched_No (Key), Book_CD_Nme (Key),Positn_Num (Key)
As you can see 4 of the conditions match in Owner to join to table 2 but Onwer_port_cd cant be joined in as it's not in Position.
I need to get one table from the two tables so I can map income to its owner.
Right now my join results in a cartesian product as it's not taking in all qualifiers.