Hi all,
can someone please help..
I am trying to query a database DB2..
I want to get back the last 4months (120 Days) of Despatch data using the CURRENT DATE register in sysibm/sysdummy1
I am trying to compare DESPATCH_DATE with CURRENT DATE
SELECT CURRENT DATE AS TODAY ,zxdsdt as DESPATCH_DATE
FROM sysibm/sysdummy1 , mvxamodsfc/mzimhs
WHERE DESPATCH_DATE >= TODAY - 120
Error Despatch_Date not in specified tables..
I am using AS to make columns more readable.
if I leave out the WHERE I get columns returned OK as named but I need the 4month option.
Any help with the correct way to do this please..
Ray..
can someone please help..
I am trying to query a database DB2..
I want to get back the last 4months (120 Days) of Despatch data using the CURRENT DATE register in sysibm/sysdummy1
I am trying to compare DESPATCH_DATE with CURRENT DATE
SELECT CURRENT DATE AS TODAY ,zxdsdt as DESPATCH_DATE
FROM sysibm/sysdummy1 , mvxamodsfc/mzimhs
WHERE DESPATCH_DATE >= TODAY - 120
Error Despatch_Date not in specified tables..
I am using AS to make columns more readable.
if I leave out the WHERE I get columns returned OK as named but I need the 4month option.
Any help with the correct way to do this please..
Ray..