Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 20 Jan 2011 @ 19:01:07 GMT


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


Subj:   Re: Query ends within a string or common block
 
From:   Vinay Bagare

For your first question, I think you might have keyed in a Double quote.

Try the below query

     select
     'Weekly Security report for the week of  ' (title '')
     ,cast((date - 7 (format 'ddBmmm')) as varchar(20))  (title '')
     , ' - ' (title '')
     ,cast((date (format 'ddBmmmByyyy')) as varchar(20))  (title '');

For your second question, it sounds like you are trying to do these in BTEQ.

You could instead do this.

     .SET HEADING b Weekly Security report //  for the week ofb

Please look up BTEQ user documentation for more details.


Thanks,

Vinay Bagare



     
  <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