Mike Hughes
Registered User.
- Local time
- Today, 22:11
- Joined
- Mar 23, 2002
- Messages
- 493
This is the query I have:
SELECT
a.ID_CASE,
a.AMT_TXN_CUR_SUP
FROM NOLDBA_LOG_SUPPORT a
WHERE a.MTH_SUPPORT in (201007, 201008);
It returns how much CUR_SUP is owed on each ID_CASE in the past 60 days.
The CUR_SUP field is not in days it is in months.
So whenever I need to run the query I need to be sure that the past two months are entered as the parameter value.
Can someone tell me ( and show me) if there is a way to change the query so that I don’t need to enter this information whenever I run this query? In other words have the query just run for the past two months, prior to the one we are currently in.
Thanks, Mike
SELECT
a.ID_CASE,
a.AMT_TXN_CUR_SUP
FROM NOLDBA_LOG_SUPPORT a
WHERE a.MTH_SUPPORT in (201007, 201008);
It returns how much CUR_SUP is owed on each ID_CASE in the past 60 days.
The CUR_SUP field is not in days it is in months.
So whenever I need to run the query I need to be sure that the past two months are entered as the parameter value.
Can someone tell me ( and show me) if there is a way to change the query so that I don’t need to enter this information whenever I run this query? In other words have the query just run for the past two months, prior to the one we are currently in.
Thanks, Mike