R
Rick
The sql below is a real simple query that returns loan
count by status.
SELECT UDM_V_PMT_CURR_MO.STATUS, Count
(UDM_V_PMT_CURR_MO.LOAN_NUM) AS CountOfLOAN_NUM
FROM UDM_V_PMT_CURR_MO
WHERE (((UDM_V_PMT_CURR_MO.INV_CODE) In ("223")) AND
((UDM_V_PMT_CURR_MO.STATUS) Not In ("CLOSED")))
GROUP BY UDM_V_PMT_CURR_MO.STATUS
ORDER BY UDM_V_PMT_CURR_MO.STATUS;
What I need is to be able to sort/order the statuses in
any order I choose. For example, when sorting ascending
the order is as follows:
30 DPD
60 DPD
90 DPD
CURRENT
FC
REM
REO
REPERF
I would like to be able to change the order based on an
investor's request. For example, in the list above change
the order so that CURRENT appears first then the rest of
the statuses follow as is.
Thanks for your help!
Rick
count by status.
SELECT UDM_V_PMT_CURR_MO.STATUS, Count
(UDM_V_PMT_CURR_MO.LOAN_NUM) AS CountOfLOAN_NUM
FROM UDM_V_PMT_CURR_MO
WHERE (((UDM_V_PMT_CURR_MO.INV_CODE) In ("223")) AND
((UDM_V_PMT_CURR_MO.STATUS) Not In ("CLOSED")))
GROUP BY UDM_V_PMT_CURR_MO.STATUS
ORDER BY UDM_V_PMT_CURR_MO.STATUS;
What I need is to be able to sort/order the statuses in
any order I choose. For example, when sorting ascending
the order is as follows:
30 DPD
60 DPD
90 DPD
CURRENT
FC
REM
REO
REPERF
I would like to be able to change the order based on an
investor's request. For example, in the list above change
the order so that CURRENT appears first then the rest of
the statuses follow as is.
Thanks for your help!
Rick