标签:name 错误 inner 数据 如何获取 join school code 不同的
我想从两个不同的表一个表包含数据总学生另一个表包含特定的学生如何获取学生信息 我想显示name , code, totalstudent and no.of ngo studentselect
a.name as name, a.school_code as CODE,
a.num_of_student as totalstudent,
b.COUNT (ngo_student_name) as total_student
from
ngo_student as a
INNER JOIN student_details as b on a.name=b.ngo_student_name
GROUP BY
b.ngo_student_name
请指导我该查询显示错误 谢谢
标签:name 错误 inner 数据 如何获取 join school code 不同的
原文地址:http://blog.51cto.com/14021402/2309468