Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 04 May 2004 @ 09:02:05 GMT


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


Subj:   Case sensitivity modifier in IN clause
 
From:   Marcus_Joseph

I'm unable to use NOT CS in the IN clause. How do I specify the case sensitive modifier in the IN clause ?

eg:

Case 1:

The SQL

     Sel * from dbc.databases
        where databasename (NOT CS) ='D1' (NOT CS)
              OR databasename (NOT CS) = 'D2' (NOT CS);

Equivalent SQL using IN clause

     Sel * from dbc.databases
        where databasename IN ('D1', 'D2');

Case 2:

The SQL with the NOT CS clause

     Sel * from dbc.databases
        where databasename (NOT CS) ='D1' (NOT CS)
              OR databasename (NOT CS) = 'D2' (NOT CS);

Equivalent SQL using IN clause and NOT CS

     Sel * from dbc.databases
        where databasename IN ('D1' (NOT CS), 'D2' (NOT CS));
      *** Error 3707 Syntax error, expected something like ')' between ')' and  ','.
                       Statement# 1, Info =68
      *** Total elapsed time was 1 second.


     
  <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