I have a DB2 query that lists the first day of each week in a year. I need to be able to convert this to an Access query.
Here's the DB2 query:
with all_days(dt) as
(select (date('2007-01-01')) from sysibm.sysdummy1
union all
select dt + 1 day from all_days
where dt < '2007-12-31' )
select dt from all_days
where dayofweek_iso(dt) = 1;
Please note that sysimb.sysdummy1 is not an actual table and is similar to Oracle's DUAL table.
Does Access have a 'dummy' table?
If this cannot be accomplished in a query, then maybe a User-Defined Function?
Any help would be greatly appreciated.
Thanks
Here's the DB2 query:
with all_days(dt) as
(select (date('2007-01-01')) from sysibm.sysdummy1
union all
select dt + 1 day from all_days
where dt < '2007-12-31' )
select dt from all_days
where dayofweek_iso(dt) = 1;
Please note that sysimb.sysdummy1 is not an actual table and is similar to Oracle's DUAL table.
Does Access have a 'dummy' table?
If this cannot be accomplished in a query, then maybe a User-Defined Function?
Any help would be greatly appreciated.
Thanks