SELECT SMM.StudentId, Student_Module.YearStudied, AVG(SMM.FinalMark) AS AverageMarks FROM SMM, Student_Module, Student WHERE Student.StudentId=SMM.StudentId AND SMM.StudentId=Student_Module.StudentId AND SMM.ModuleCode=Student_Module.ModuleCode AND Student_Module.ModuleCode=Module.ModuleCode AND Student.GraduationDate="09/08/2013" AND YearStudied>1 GROUP BY SMM.StudentId, YearStudied; UNION SELECT SMM.StudentId, "DegreeResult" AS YearStudied, AVG( SMM.FinalMark) AS AverageMarks FROM SMM, Student_Module, Student WHERE Student.StudentId=SMM.StudentId AND SMM.StudentId=Student_Module.StudentId AND SMM.ModuleCode=Student_Module.ModuleCode AND Student_Module.ModuleCode=Module.ModuleCode AND Student.GraduationDate="09/08/2013" AND YearStudied>1 GROUP BY SMM.StudentId;
pre
Quote:You could have an Integer field where the incoming data is larger, or a text field with a small width where the incoming text is longer, or that type of thing. You might be able to find it by eliminating fields one at a time until you find the offending one, or start with one safe field and start adding fields until you find the bad one.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)