Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Inserting a Record - forum topic by vnagakishore

$
0
0

All
I am new to Teradata and debugging a issue related to insert. I have two tables in teradata. Find below the definitions
CREATE SET TABLE TablePrimary ,NO FALLBACK ,
   NO BEFORE JOURNAL,
     NO AFTER JOURNAL,
     CHECKSUM = DEFAULT,
     DEFAULT MERGEBLOCKRATIO
     (
      NEXT_HI DECIMAL(19,0))
PRIMARY INDEX I_H_U_K ( NEXT_HI );
I have second table say TableSecondary which has a column referring to Next_hi in TablePrimary for the primary key. I would like to know If I insert a record in the TableSecondary, Do i need to insert the key value in TablePrimary?

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles