WITH USER_CTE AS (
  SELECT ab.ABAN8 AS AddressNumber,
         TRIM(pro.ULUSER) AS UserID,
         TRIM(ab.ABALPH) AS FullName,
		 ab.ABUPMJ AS LastUpdateDate,
	     ab.ABUPMT AS LastUpdateTime,
		 ROW_NUMBER() OVER (PARTITION BY ab.ABAN8 ORDER BY ab.ABUPMJ DESC, ab.ABUPMT DESC) RN
   FROM  PRODDTA.F0101 ab LEFT OUTER JOIN 
	  	 SY920.F0092 pro ON (ab.ABAN8 = pro.ULAN8)
)
SELECT AddressNumber,
       UserID,
       FullName,
       LastUpdateDate,
	   LastUpdateTime
  FROM USER_CTE
 WHERE RN = 1