NEXT_MBR_ID is the same as PREV_MBR_ID. I need to compare NEXT_MAJOR_CD to PREV_MAJOR_CD.
I tried to comapare as below:
Select m.*,