Hi All,
I have table it contains more than 500 columns but here is the sample data.

Case 1:
I have an input of two task_event_ids i.e.,16654913, 16654915 and COL2.
Here I need to find out COL2 data is equal or not for both records. here COL2 data is not equal.
Case 2:
I have an input of two task_event_ids i.e.,16654913, 16654915 and COL3.
Here I need to find out COL3 data is equal or not for both records. here COL3 data is equal.
Here I need to make the generic query, to find content of the COLUMN (i.e. Column name is dynamic it will be one of 500 columns in my table) is equal or not in both records.
Appreciate your help on this.
Thanks,
-Venkat.