Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 22 May 2003 @ 14:26:25 GMT


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


Subj:   Extract day of week from date
 
From:   Leszek Kosinski

How can I extract day of week from DATE in Teradata v2r4.1?

example:

select
case when extract(dayofweek, date) is 'Monday'
then count(val1)
case when extract(dayofweek, date) is 'Tuesday'
then count(val2)


from table1
...

----- Leszek Kosinski



     
  <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