How to compare values of two rows using cursor?

Printable View