select count(studentcode),studentcode from gen_studentinfo2 group by studentcode having count(studentcode) > 1