![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 19 Dec 2006 @ 23:20:37 GMT
How about this:
select *
from sys_calendar.calendar
where day_of_week = 6
Qualify calendar_date = max(calendar_date)
over (partition by year_of_calendar)
;
Michael Chong
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||