My SQL Query is,
SELECT EAL_TYPE, EAL_ID, ROW_NUMBER ()OVER(PARTITION BY EAL_TYPE,EAL_ID ORDER BY EAL_TYPE,EAL_ID,EAL_ACTION_TIME Desc)SL#, EAL_S