Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 17 Jul 2002 @ 09:39:42 GMT


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


Subj:   Inserting in to Volatile table
 
From:   N.D.Rajesh Kumar

Hi,

I have created an Volatile table ZZMQ00 and inserting rows by selecting from WLUP_PARTY_MASTER table which exists in three data bases,but it says the following error, go through the example given below and the error.

Example:

create volatile table ZZMQ00, no fallback, no before journal, no after
journal(CATEGORY_ID VARCHAR(6), GENDER_ID VARCHAR(6), GOVERNORATE_ID
VARCHAR(6), MARKET_SEGMENT_ID VARCHAR(6), NATIONALITY_ID VARCHAR(6))

primary index (CATEGORY_ID, GENDER_ID, GOVERNORATE_ID,
MARKET_SEGMENT_ID,
NATIONALITY_ID) on commit preserve rows;

 insert into ZZMQ00 select a12.CATEGORY_ID CATEGORY_ID,a12.GENDER_ID
GENDER_ID,a12.GOVERNORATE_ID GOVERNORATE_ID,a12.MARKET_SEGMENT_ID
ARKET_SEGMENT_ID,a12.NATIONALITY_ID NATIONALITY_ID

from WFT_BILL_FACT a11, WLUP_PARTY_MASTER a12

where a11.PARTY_KEY = a12.PARTY_KEY

and a11.BILL_DATE between '2002/01/01' and '2002/07/16'

group by a12.CATEGORY_ID,

a12.GENDER_ID,

a12.GOVERNORATE_ID,

a12.MARKET_SEGMENT_ID,

a12.NATIONALITY_ID

having sum(a11.PREVIOUS_BALANCE) > 0

Error message: While running the insert query, the following eroor occurs Table/view/trigger name 'WLUP_PARTY_MASTER' is ambiguous.

How to over come this problem, is there any way to insert in to volatile table with this scenario?


Thanks in advance.

Rajesh

N.D.Rajesh KumarSystech Solutions



     
  <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: 15 Jun 2023