![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 06 Mar 2009 @ 17:53:29 GMT
<-- Anonymously Posted: Fri, 6 Mar 2009 11:08 -->
sel cast((b.day_of_year * 1.0000)
/ (a.day_of_year * 1.0000) * 100.00 as decimal (5,2))
from (sel max(day_of_year) day_of_year from sys_calendar.calendar
where year_of_calendar = extract(year from current_date)) a
, (sel day_of_year from sys_calendar.calendar
where calendar_date = current_date) b
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||