Thanks Ron for guiding me.
Following is my question:
/****************table which contains the data to compare**********/
Create table test_data
(
id int,
FirstName varchar(50),
version int,
Product varchar(100),
Area varchar(20),
Price int,
quantity int,
...