How can we get column name for pattern matched with all columns at a time

Duplicate: I am trying to fetch unique records and get the columnname and value where there is duplication can anyone suggest how to approach