Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 21 Nov 2007 @ 08:57:24 GMT


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


Subj:   Between: not working as expected
 
From:   Anomy Anom

<-- Anonymously Posted: Tue, 20 Nov 2007 16:46 -->

Hi All,

Can anyone please tell me what is the difference between these two queries:

     sel *
     From    test
     Where   Exit_Date Between '0001-01-01'
              And     '1900-01-01'

     sel *
     From    test
     Where   Exit_Date < '1900-01-01'
              And     Exit_Date > '0001-01-01'

First one returns me 35725730 records with Exit_Date as blank.

Second one returns 4 rows with values

     11/22/999
     11/22/999
     11/30/999

     04/23/1199

Also

     sel *
     From    Test
     Where
            Cast(Exit_Date As char) = ''

Returns no value.


Regards,

Shubhangi



     
  <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