我想從兩個不同的表一個表包含數據總學生另一個表包含特定的學生如何獲取學生信息 我想顯示name , code, totalstudent and no.of ngo student
select
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
請指導我該查詢顯示錯誤 謝謝