HERE IS MY INSERT STATEMENT
HERE IS THE ERROR
there is already data in the Table Tbl_Temp_CDR, I'm just wanting to insert the data from one table to another using the Pkey/CDR_Seq_Key as the matching...
I have tried UPDATE Table, but when I run the next set, it updates the previous sets values to NULL.
There is not NULLs in either the the tables (Pkey/CDR_Seq_Key) Fields.
Any help is appreciated by this newbie...
Code:
INSERT INTO Tbl_Temp_CDR(Bill_Duration)
SELECT TmpEgress.Egress_Seconds
FROM TmpEgress, Tbl_Temp_CDR T1
WHERE TmpEgress.Pkey = T1.CDR_Seq_Key
HERE IS THE ERROR
Code:
Server: Msg 515, Level 16, State 2, Line 1
Cannot insert the value NULL into column 'CDR_Seq_Key', table 'Traffic_1.dbo.Tbl_Temp_CDR'; column does not allow nulls. INSERT fails.
The statement has been terminated.
there is already data in the Table Tbl_Temp_CDR, I'm just wanting to insert the data from one table to another using the Pkey/CDR_Seq_Key as the matching...
I have tried UPDATE Table, but when I run the next set, it updates the previous sets values to NULL.
There is not NULLs in either the the tables (Pkey/CDR_Seq_Key) Fields.
Any help is appreciated by this newbie...