关于INNER JOIN
SELECT dbo.TBL_Result1.Quest2Ans AS Q2, dbo.TBL_Result1.Quest1Ans AS Q1,
dbo.TBL_Result1.Quest4Ans AS Q4, dbo.TBL_Result1.Quest3Ans AS Q3,
dbo.TBL_Result1.Quest5Ans AS Q5, dbo.TBL_Result1.Quest6Ans AS Q6,
dbo.TBL_Result1.Quest7Ans AS Q7, dbo.TBL_Result1.Quest8Ans AS Q8,
dbo.TBL_Result1.Quest9Ans AS Q9, dbo.TBL_Result1.Quest10Ans AS Q10,
dbo.TBL_Student.StudentClass, dbo.TBL_Student.StudentGrade,
dbo.TBL_Student.StudentSex,dbo.TBL_Student.SID,
dbo.TBL_Student.SchoolId AS SchoolId, dbo.TBL_Student.ClassId AS ClassId,
dbo.TBL_Student.AreaId AS AreaId, dbo.TBL_School.SchoolName AS SchoolN,
dbo.TBL_Class.ClassName AS ClassN, dbo.TBL_Area.AreaName AS AreaN
FROM dbo.TBL_Student INNER JOIN
dbo.TBL_Result1 ON dbo.TBL_Student.SID = dbo.TBL_Result1.SID INNER JOIN
dbo.TBL_School ON
dbo.TBL_Student.SchoolId = dbo.TBL_School.SchoolId INNER JOIN
dbo.TBL_Class ON
dbo.TBL_Student.ClassId = dbo.TBL_Class.ClassId INNER JOIN
dbo.TBL_Area ON
dbo.TBL_Student.AreaId = dbo.TBL_Area.AreaId Where (1=1)
and (dbo.TBL_Student.AreaId=370200)
and (dbo.TBL_Student.SchoolId=103)
and (dbo.TBL_Student.StudentGrade='2005级')
以上语句执行后会返回很多的重复记录为什么??