Hi Srijith ,
From the example you have given , it is not clear what the time has to do with the output ; for No 121 , the products are product1 and product2 , whereas for No 123 , the products are product3 and product4.
Suppose there are many more products for a particular No. Should the first and last products be output ? Will these be the first and last based on the rows in which they occur e.g. suppose in your example data , product3 had the time 16:50:45 against it , and product4 had the time 16:38:45 against it ; which product would appear under From , and which would appear under To ?
Narayan