Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Split the dates bi-weekly - response (3) by dnoeth

$
0
0

I don't get what your exactly trying to achieve.
"run my job bi-weekly": scheduling a job on Unix or retriving rows in a SELECT?
"nearest monday": based on what, first of month?
"no missing date": return a row even if there's no data for it?
A simple query on sys_calendar.calendar based on day_of_calendar = 2 and week_of_calendar mod 2 = 0|1 should work. 
Similar in TD13.10+ an EXPAND ON MONDAY.


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>