How to compare two rows or get the fields which value is not match with the rows that compared?
问题 I'm trying to get the fields which value is not match base on the compared rows. It's hard to explain so I'll put the sample table and its results. Table: orders | seqid | orderId | taskId | field1 | field2 | field3 | field4 | +---------+-----------+----------+----------+----------+----------+----------+ | 1 | 1 | 1 | a | b | c | d | | 2 | 1 | 2 | a | b | c | d | | 3 | 2 | 1 | a | b | c | d | | 4 | 2 | 2 | a | c | c | c | | 5 | 3 | 1 | a | a | a | a | Results: | OrderId | FieldName | Error |