For example take example of following table.
Student IDNameSectionPercentageSubject IdOther Activities
1 ABCA 100123 NULL
2 CDEA 50345 NULL
2 CDEA 50 Good In sports
3 EFGA 50 123 NULL
3 EFGA 50345 NULL
4 GHIA 100 Good In sports
Now i have to write a stored procedure which takes input as student id, student name and section details as datatable and tells whether all the records passed in datatable have the same values for percentage, subject id, other activities or not .
Any suggestions are helpful