Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 11 Aug 2003 @ 20:20:11 GMT


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


Subj:   Re: Help me identify the query error please.
 
From:   Michael Larkins

Sankar:

You do not need the FORMAT, since YYYYMMDD is the default format for a date. So, I suggest that you eliminate if from your UPDATE and it should work fine in MLOAD, BTEQ and Queryman.

I believe what is happening is based on the fact that BTEQ and SQL Assistant (new Queryman name) substitute the data before submitting the SQL directly to the PE.

FastLoad and MLoad, on the other hand, do their own internal processing of the SQL and send it to the AMPs to marry up with the data. Again, since you are using the default format it is not needed anyway.

On the other hand, if you had to specify a FORMAT, it is done something like this for a month, day and 4 digit year (I didn't look it up - and yes, I realize it is not the format you are using - just an example):

:indate (date, FORMAT 'MM/DD/YYYY')


Hope this helps,

Mike



     
  <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