How to use Dynamic fields

How to use Dynamic fields

  

Hi ,


I am working on project where the requirement is 

There are 2 tables with same data structures and data  and from first table , I wish to compare data using column collection dynamically , how can I get done the same ?

Please guide me

-Prasad Chaini