SELECT u.id,u.name,g.grade_num FROM USER u,grade_info g WHERE u.id NOT IN(SELECT t1.a1 FROM (SELECT user_id a1,SUM(grade_num) n1 FROM grade_info WHERE TYPE='add' GROUP BY user_id)t1 JOIN (SELECT user_id a2,SUM(grade_num) n2 FROM grade_info WHERE TYPE='reduce' GROUP BY user_id)t2&nb...