Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 06 Apr 2006 @ 09:36:39 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Create multiset with UPI and SET with NUPI have different results
 
From:   Satyamadhav Vangara

Hi

I have a created 2 tables as following using

     create  set table sfra ( a int , b char(10));

     create multiset table sfrb ( a int , b char(10)) unique primary index(a);

I have data in staging table, which are duplicate rows of the target table rows. I move the data from this staging table to target table sfra/sfrb using command

     insert into sfra/sfrb select * from  staging_table;

for the table "sfra" data is loaded but for the second table sfrb, the query fails with 2801 error. as duplicate error.

As i understand set should not allow the duplicates into the table. so the behavior should be same in either case .I s my understanding correct?


Thanks And Regards

Satyamadhav Vangara



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