Re: Making Sure Primary and Secondary Keys Alligns

2023-09-13 Thread Sándor Daku
On Wed, 13 Sept 2023 at 17:30, Anthony Apollis wrote: > Yes in deed. > I am trying to make sure that the keys are aligned, but it doesnt update > or it simply shows NULL in Fact table, meaning its secondary keys. > > "-- Step 1: Drop existing foreign key constraint for Entity > ALTER TABLE system

Re: Making Sure Primary and Secondary Keys Alligns

2023-09-13 Thread Anthony Apollis
Yes in deed. I am trying to make sure that the keys are aligned, but it doesnt update or it simply shows NULL in Fact table, meaning its secondary keys. "-- Step 1: Drop existing foreign key constraint for Entity ALTER TABLE system."IMETA_ZTRB_MP$F_ZTBR_TA_BW" DROP CONSTRAINT IF EXISTS fk_entity;

Re: Making Sure Primary and Secondary Keys Alligns

2023-09-11 Thread Alban Hertroys
> On 11 Sep 2023, at 16:09, Anthony Apollis wrote: > > Fact Table: > CREATE TABLE IF NOT EXISTS system."IMETA_ZTRB_MP$F_ZTBR_TA_BW" > ( (…) > ) > and Dimension:CREATE TABLE IF NOT EXISTS dim."IMETA_Region_Mapping" > ( (…) > ) > How do i get that all these columns that are joined are align

Making Sure Primary and Secondary Keys Alligns

2023-09-11 Thread Anthony Apollis
Fact Table: -- DROP TABLE IF EXISTS system."IMETA_ZTRB_MP$F_ZTBR_TA_BW"; CREATE TABLE IF NOT EXISTS system."IMETA_ZTRB_MP$F_ZTBR_TA_BW" ( "ZTBR_TransactionCode" integer NOT NULL DEFAULT nextval('system."IMETA_ZTRB_MP$F_ZTBR_TA_BW_ZTBR_TransactionCode_seq"'::regclass), "Company_Code" charac