Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 22 Apr 2004 @ 19:13:51 GMT

  <Prev Next>  
Next> Last>>  

Subj:   RDBMS Error 2802: Duplicate row error
From:   Anomy Anom

<-- Anonymously Posted: Thursday, April 22, 2004 15:05 -->


Two tables table01 and table02 -

Table01 has the following columns - pk1, pk2, pk3, pk4, pk5, x1, x2, x3, x4, x5. where the UPI is (pk1, pk2, pk3, pk4, pk5)

Table02 has the following columns - pk1, x1, a1, b1, c1, d1, e1 where UPI is pk1.

There are 6m rows in table01 and 40K rows in table02.

I need to update the field x1 in table01 from x1 in table02.

UPDATE T1 FROM table01 T1, table02 T2
 x1 = T2.x2
WHERE T1.pk1 = T2.pk1

The query results in 2802.

It is clear that the query does not update the columns of UPI in table01, but I don't understand why an update on a non-primary key column can make the row duplicate.


  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023