J
Julie
I have a query with two fields. I want to make it so that there is only one
CaseNumberKey listed with an associated DispositionSeverityCode. What I want
to do is similar to setting the DispositionSeverityCode = Max, but instead I
want to force the query to select down a list. First select FEL, and if that
doesn't exist then GMD, then MSD, then PMD.
Here's the SQL for what I have so far using the Max option. Any ideas on
how I can force it to select from a list I write (FEL, GMD, MSD, PMD)?
SELECT qryMNCIS27JVdispositions.caseNumberKey,
Max(qryMNCIS27JVdispositions.DispositionSeverityCode) AS
MaxOfDispositionSeverityCode
FROM qryMNCIS27JVdispositions
GROUP BY qryMNCIS27JVdispositions.caseNumberKey;
CaseNumberKey listed with an associated DispositionSeverityCode. What I want
to do is similar to setting the DispositionSeverityCode = Max, but instead I
want to force the query to select down a list. First select FEL, and if that
doesn't exist then GMD, then MSD, then PMD.
Here's the SQL for what I have so far using the Max option. Any ideas on
how I can force it to select from a list I write (FEL, GMD, MSD, PMD)?
SELECT qryMNCIS27JVdispositions.caseNumberKey,
Max(qryMNCIS27JVdispositions.DispositionSeverityCode) AS
MaxOfDispositionSeverityCode
FROM qryMNCIS27JVdispositions
GROUP BY qryMNCIS27JVdispositions.caseNumberKey;