Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Substring Error? - forum topic by sophiachan

$
0
0

WHERE ...
AND SUBSTRING(CASE WHEN TABLE_A.COL_1 IS NOT NULL THEN TABLE_A.COL_1 ELSE TABLE_B.COL_1 END, LENGTH(CASE WHEN TABLE_A.COL_1 IS NOT NULL THEN TABLE_A.COL_1 ELSE TABLE_B.COL_1 END)-11,12) IN (SELECT COL_1 FROM TABLE_C)
 It says expect something between 'END' and ',' but what will it be?  I tried to add () to the case statement but still doesn't work...  Anyone?  Thanks!

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>