Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 22 May 2003 @ 15:09:56 GMT


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


Subj:   Re: Extract day of week from date
 
From:   Sri Banda

Try this

select
case when c.day_of_week = 2
then count(val1)
case when c.day_of_week = 3
then count(val2)

from table1 a,
        Sys_Calendar.CALENDAR c
where a.date = c.Calendar_date

Srinivas Banda (Sri)



     
  <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