1: 2: 3: 4: 5:
WHERE ISNULL(FINANCIAL_HIST.EVAL_DATE, '1900.01.01') <= @userdate AND POLICY.INSURER_EID = 12345 AND CLAIM.LINE_OF_BUS_CODE = 123 AND POLICY.POLICY_NUMBER LIKE '%-08' AND CLAIM.CLAIM_TYPE_CODE <> '5058'