SELECT
  RTRIM(SXCUST) AS sxcust,
  CASE WHEN SXDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE SXDATE END AS sxdate
FROM "CMS.CUSLG".SURCHGEXC
