Can someone help me with any approach for the below scenario? I have to compare to csv files which are basically the select queries(having selective field's values,i.e not a select * from ..) of two or more table.
select student_id,student_name,age,address,dept id,class_id
from student
select deptid,dept_name,head_of_dept,number_of_staffs
from department
I have to compare these two files and display the field names and its value which is differing from the other file.The files do not have any unique key values, as it is the result of select query of multiple tables in a row of the files it can have duplicate values , i,e for e.g if it result of student and dept table it can have dept id twice in the row of a file. How do I compare this case using java.