Need advice on how to arrive at this :
Collection1(INPUT) - RollNo, StudentName, Subject, Marks
//Collection1(input) has about 1000 records
1,ABC,English, 50
1,ABC,Math,60
2,XYZ, English, 60
I want identify all the duplicates by RollNo into another collection with ALL COLUMN values
Output(Collection2)
1,ABC,English,50
1,ABC,Math,60
I will pass this collection onto a loop,I will be working on one set of duplicates, at a time