michoel
CASE WHEN {systemnotes.oldvalue} IS NOT NULL AND {systemnotes.field} = 'Doc. No.' THEN 1 ELSE 0 END