Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 11 Feb 2003 @ 19:54:11 GMT


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


Subj:   Re: I'm stumped...case logic on a left join subquery vs. case logic on a select query
 
From:   Fred W Pluebell

The real question in my mind is why the first query works. I believe your problem is that LENGTH(...) isn't a standard SQL function.

Instead of

LENGTH(pc.postl_cd)=9

use something like

CHARACTER_LENGTH(TRIM(TRAILING FROM pc.postl_cd)) =9



     
  <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