Assuming the value of SEQ column will be in order, you can use the below sql to get the result:
SEL CURR.AppNo,CURR.STS_CD,PREV.STS_CD,CURR.LOAN_NUM,CURR.DTE,PREV.DTE
FROM <TABLE> CURR
LEFT JOIN <TABLE> PREV
ON CURR.AppNo = PREV.AppNo
AND CURR.SEQ-1 = PREV.SEQ
↧