I have a query (in MS-Query, MSQRY32.EXE) that does 2 sums, and then the first will subtract the second, but in some cases the second is null, how do I go over this?
(Sum(CASE WHEN m.mcdmv=11 THEN m.mqtd END)-
Sum(CASE WHEN m.mcdmv=12 THEN m.mqtd END))
This is the part of the query, but sometimes one of them or both are null, so how do I do this?