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.
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.