![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 22 May 2003 @ 15:09:56 GMT
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)
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||