Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 29 Sep 2004 @ 20:11:32 GMT


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


Subj:   Re: SELECT syntax error
 
From:   paul.burns

Michael,

A question or comment about this:

     "where a.account_number = b.account_number
        and  a.statement_date/100 = 200408 ;"

Should it not be?

     "where a.account_number = b.account_number
        and  a.statement_date/100 = 10408 ;"

Or is this something the my version of Queryman/ODBC likes to do?

This puts the century in the results.

     select(current_date /100 ) + 190000

     Results: 200409

The select current_date / 100 returns 10409 ;


Paul



     
  <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