I have a table. I want to compare each row with next row till all rows. If matched I need to display only mismatch values.
TABLE_A
-
A B C
-
A B D
-
E A E
-
A C E
.. .. .. nth
Output should be
-
A B C
-
NULL NULL D
-
E A E
-
A C NULL
.. .. .. nth