如何找到計數表在不同的行嗎

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章