• I wanted to try using cursor. I know that performance is poor but still i want to implement the logic using cursor.