Hello All -
Really appreciate your help!!!
DB2 UDB 9
The work_period field is a CHAR "199802" CCYYMM.
I was trying to run the following:
& here is the message:
SQL0440N No authorized routine named "DATE" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884
THANKS!!!
Really appreciate your help!!!
DB2 UDB 9
The work_period field is a CHAR "199802" CCYYMM.
I was trying to run the following:
Code:
SELECT
,MEMBER_WORK_PERIOD.MEMBER_KEY
,MEMBER_WORK_PERIOD.MVPOS
,MEMBER_WORK_PERIOD.WORK_PERIOD
,MEMBER_WORK_PERIOD.EMPLOYER_NO
FROM
MEMBER_WORK_PERIOD_FUND, MEMBER_WORK_PERIOD
WHERE
MEMBER_WORK_PERIOD_FUND.MVPOS=MEMBER_WORK_PERIOD.MVPOS
AND MEMBER_WORK_PERIOD.MEMBER_KEY=MEMBER_WORK_PERIOD_FUND.MEMBER_KEY AND FUND='L522P' AND APP='HW'
[red]
and date ( left( MEMBER_WORK_PERIOD.WORK_PERIOD,4) || '-' || right( MEMBER_WORK_PERIOD.WORK_PERIOD,2) || '-' || '01') < date('2005-07-01')
and date ( left( MEMBER_WORK_PERIOD.WORK_PERIOD,4) || '-' || right( MEMBER_WORK_PERIOD.WORK_PERIOD,2) || '-' || '01') > date('2004-06-01')[/red]
& here is the message:
SQL0440N No authorized routine named "DATE" of type "FUNCTION" having
compatible arguments was found. SQLSTATE=42884
THANKS!!!