builder.AppendFormat(@" AND A.{0}={1} ",nameof(RB_Student_ExamDetails_Extend.ExamId),query.ExamId);
}
if(!string.IsNullOrEmpty(query.QExamIds))
{
builder.AppendFormat(@" AND A.{0} IN ({1}) ",nameof(RB_Student_ExamDetails_Extend.ExamId),query.QExamIds);
}
}
builder.AppendFormat(@" AND ExamId IN(SELECT MAX(id) FROM rb_student_exam WHERE StudentId IN({0}) AND BankId={1} AND Score>0) ",query.StudentId,query.BankId);