Hi, I am a beginner in learning Oracle PLSQL. In my Cursor SQL statement, I give select * from emp order by dept_no,sal Consider for each department there are 2 records in the table. I want to compare records in the same table using cursors. If first two records match then print the comment column in each of the record as matching. Else Print not matching. Likewise match the next two records. Can comeone please help me with this..... Thanks.